Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1319133002: [es6] Implement spec compliant ToName (actually ToPropertyKey). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@ToPrimitive
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/debug/mirrors.js ('k') | src/macros.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/debug/mirrors.js ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698