Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
5358470c
Commit
5358470c
authored
Jul 02, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
microptimize ASTInterpreter member offsets. Saves about 4byte per statement.
parent
fc366564
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/codegen/ast_interpreter.cpp
src/codegen/ast_interpreter.cpp
+8
-5
No files found.
src/codegen/ast_interpreter.cpp
View file @
5358470c
...
...
@@ -148,14 +148,17 @@ private:
void
abortJITing
();
void
finishJITing
(
CFGBlock
*
continue_block
=
NULL
);
// this variables are used by the baseline JIT, make sure they have an offset < 0x80 so we can use shorter
// instructions
CFGBlock
*
next_block
,
*
current_block
;
AST_stmt
*
current_inst
;
CompiledFunction
*
compiled_func
;
SourceInfo
*
source_info
;
ScopeInfo
*
scope_info
;
PhiAnalysis
*
phis
;
SymMap
sym_table
;
CFGBlock
*
next_block
,
*
current_block
;
AST_stmt
*
current_inst
;
ExcInfo
last_exception
;
BoxedClosure
*
passed_closure
,
*
created_closure
;
BoxedGenerator
*
generator
;
...
...
@@ -259,12 +262,12 @@ void ASTInterpreter::gcHandler(GCVisitor* visitor, Box* box) {
}
ASTInterpreter
::
ASTInterpreter
(
CompiledFunction
*
compiled_function
)
:
compiled_func
(
compiled_function
),
:
current_block
(
0
),
current_inst
(
0
),
compiled_func
(
compiled_function
),
source_info
(
compiled_function
->
clfunc
->
source
.
get
()),
scope_info
(
0
),
phis
(
NULL
),
current_block
(
0
),
current_inst
(
0
),
last_exception
(
NULL
,
NULL
,
NULL
),
passed_closure
(
0
),
created_closure
(
0
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment