| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 TypeofMode typeof_mode, Label* slow); | 513 TypeofMode typeof_mode, Label* slow); |
| 514 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); | 514 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); |
| 515 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, | 515 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, |
| 516 Label* slow, Label* done); | 516 Label* slow, Label* done); |
| 517 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); | 517 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); |
| 518 void EmitVariableLoad(VariableProxy* proxy, | 518 void EmitVariableLoad(VariableProxy* proxy, |
| 519 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 519 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 520 | 520 |
| 521 void EmitAccessor(ObjectLiteralProperty* property); | 521 void EmitAccessor(ObjectLiteralProperty* property); |
| 522 | 522 |
| 523 bool NeedsHoleCheckForLoad(VariableProxy* proxy); | |
| 524 | |
| 525 // Expects the arguments and the function already pushed. | 523 // Expects the arguments and the function already pushed. |
| 526 void EmitResolvePossiblyDirectEval(Call* expr); | 524 void EmitResolvePossiblyDirectEval(Call* expr); |
| 527 | 525 |
| 528 // Platform-specific support for allocating a new closure based on | 526 // Platform-specific support for allocating a new closure based on |
| 529 // the given function info. | 527 // the given function info. |
| 530 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); | 528 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); |
| 531 | 529 |
| 532 // Re-usable portions of CallRuntime | 530 // Re-usable portions of CallRuntime |
| 533 void EmitLoadJSRuntimeFunction(CallRuntime* expr); | 531 void EmitLoadJSRuntimeFunction(CallRuntime* expr); |
| 534 void EmitCallJSRuntimeFunction(CallRuntime* expr); | 532 void EmitCallJSRuntimeFunction(CallRuntime* expr); |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 Address start_; | 1022 Address start_; |
| 1025 Address instruction_start_; | 1023 Address instruction_start_; |
| 1026 uint32_t length_; | 1024 uint32_t length_; |
| 1027 }; | 1025 }; |
| 1028 | 1026 |
| 1029 | 1027 |
| 1030 } // namespace internal | 1028 } // namespace internal |
| 1031 } // namespace v8 | 1029 } // namespace v8 |
| 1032 | 1030 |
| 1033 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1031 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| OLD | NEW |