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 #include "src/ast.h" | 5 #include "src/ast.h" |
6 #include "src/ast-numbering.h" | 6 #include "src/ast-numbering.h" |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 while (current != NULL) { | 876 while (current != NULL) { |
877 current = current->Exit(&stack_depth, &context_length); | 877 current = current->Exit(&stack_depth, &context_length); |
878 } | 878 } |
879 __ Drop(stack_depth); | 879 __ Drop(stack_depth); |
880 } | 880 } |
881 | 881 |
882 | 882 |
883 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, | 883 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, |
884 BailoutId bailout_id) { | 884 BailoutId bailout_id) { |
885 VisitForStackValue(property->key()); | 885 VisitForStackValue(property->key()); |
886 __ InvokeBuiltin(Context::TO_NAME_BUILTIN_INDEX, CALL_FUNCTION); | 886 __ CallRuntime(Runtime::kToName, 1); |
887 PrepareForBailoutForId(bailout_id, NO_REGISTERS); | 887 PrepareForBailoutForId(bailout_id, NO_REGISTERS); |
888 __ Push(result_register()); | 888 __ Push(result_register()); |
889 } | 889 } |
890 | 890 |
891 | 891 |
892 void FullCodeGenerator::EmitLoadSuperConstructor(SuperCallReference* ref) { | 892 void FullCodeGenerator::EmitLoadSuperConstructor(SuperCallReference* ref) { |
893 VisitForStackValue(ref->this_function_var()); | 893 VisitForStackValue(ref->this_function_var()); |
894 __ CallRuntime(Runtime::kGetPrototype, 1); | 894 __ CallRuntime(Runtime::kGetPrototype, 1); |
895 } | 895 } |
896 | 896 |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1588 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1589 codegen_->scope_ = saved_scope_; | 1589 codegen_->scope_ = saved_scope_; |
1590 } | 1590 } |
1591 | 1591 |
1592 | 1592 |
1593 #undef __ | 1593 #undef __ |
1594 | 1594 |
1595 | 1595 |
1596 } // namespace internal | 1596 } // namespace internal |
1597 } // namespace v8 | 1597 } // namespace v8 |
OLD | NEW |