OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 500 matching lines...) Loading... |
511 TypeofMode typeof_mode, Label* slow); | 511 TypeofMode typeof_mode, Label* slow); |
512 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); | 512 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); |
513 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, | 513 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, |
514 Label* slow, Label* done); | 514 Label* slow, Label* done); |
515 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); | 515 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); |
516 void EmitVariableLoad(VariableProxy* proxy, | 516 void EmitVariableLoad(VariableProxy* proxy, |
517 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 517 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
518 | 518 |
519 void EmitAccessor(ObjectLiteralProperty* property); | 519 void EmitAccessor(ObjectLiteralProperty* property); |
520 | 520 |
521 bool NeedsHoleCheckForLoad(VariableProxy* proxy); | |
522 | |
523 // Expects the arguments and the function already pushed. | 521 // Expects the arguments and the function already pushed. |
524 void EmitResolvePossiblyDirectEval(Call* expr); | 522 void EmitResolvePossiblyDirectEval(Call* expr); |
525 | 523 |
526 // Platform-specific support for allocating a new closure based on | 524 // Platform-specific support for allocating a new closure based on |
527 // the given function info. | 525 // the given function info. |
528 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); | 526 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); |
529 | 527 |
530 // Re-usable portions of CallRuntime | 528 // Re-usable portions of CallRuntime |
531 void EmitLoadJSRuntimeFunction(CallRuntime* expr); | 529 void EmitLoadJSRuntimeFunction(CallRuntime* expr); |
532 void EmitCallJSRuntimeFunction(CallRuntime* expr); | 530 void EmitCallJSRuntimeFunction(CallRuntime* expr); |
(...skipping 489 matching lines...) Loading... |
1022 Address start_; | 1020 Address start_; |
1023 Address instruction_start_; | 1021 Address instruction_start_; |
1024 uint32_t length_; | 1022 uint32_t length_; |
1025 }; | 1023 }; |
1026 | 1024 |
1027 | 1025 |
1028 } // namespace internal | 1026 } // namespace internal |
1029 } // namespace v8 | 1027 } // namespace v8 |
1030 | 1028 |
1031 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1029 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |