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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 Label* slow, Label* done); | 553 Label* slow, Label* done); |
554 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); | 554 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); |
555 void EmitVariableLoad(VariableProxy* proxy, | 555 void EmitVariableLoad(VariableProxy* proxy, |
556 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 556 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
557 | 557 |
558 void EmitAccessor(ObjectLiteralProperty* property); | 558 void EmitAccessor(ObjectLiteralProperty* property); |
559 | 559 |
560 bool NeedsHoleCheckForLoad(VariableProxy* proxy); | 560 bool NeedsHoleCheckForLoad(VariableProxy* proxy); |
561 | 561 |
562 // Expects the arguments and the function already pushed. | 562 // Expects the arguments and the function already pushed. |
563 void EmitResolvePossiblyDirectEval(int arg_count); | 563 void EmitResolvePossiblyDirectEval(Call* expr); |
564 | 564 |
565 // Platform-specific support for allocating a new closure based on | 565 // Platform-specific support for allocating a new closure based on |
566 // the given function info. | 566 // the given function info. |
567 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); | 567 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); |
568 | 568 |
569 // Re-usable portions of CallRuntime | 569 // Re-usable portions of CallRuntime |
570 void EmitLoadJSRuntimeFunction(CallRuntime* expr); | 570 void EmitLoadJSRuntimeFunction(CallRuntime* expr); |
571 void EmitCallJSRuntimeFunction(CallRuntime* expr); | 571 void EmitCallJSRuntimeFunction(CallRuntime* expr); |
572 | 572 |
573 // Load a value from a named property. | 573 // Load a value from a named property. |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 Address start_; | 1057 Address start_; |
1058 Address instruction_start_; | 1058 Address instruction_start_; |
1059 uint32_t length_; | 1059 uint32_t length_; |
1060 }; | 1060 }; |
1061 | 1061 |
1062 | 1062 |
1063 } // namespace internal | 1063 } // namespace internal |
1064 } // namespace v8 | 1064 } // namespace v8 |
1065 | 1065 |
1066 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1066 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |