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

Side by Side Diff: src/code-stubs.cc

Issue 2302923002: [stubs] Port ToName stub to TurboFan. (Closed)
Patch Set: Addressed nits. Created 4 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/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 5070 matching lines...) Expand 10 before | Expand all | Expand 10 after
5081 5081
5082 Node* has_property = GenerateHasProperty(assembler, object, key, context, 5082 Node* has_property = GenerateHasProperty(assembler, object, key, context,
5083 Runtime::kForInHasProperty); 5083 Runtime::kForInHasProperty);
5084 5084
5085 assembler->Branch( 5085 assembler->Branch(
5086 assembler->WordEqual(has_property, assembler->BooleanConstant(true)), 5086 assembler->WordEqual(has_property, assembler->BooleanConstant(true)),
5087 &return_to_name, &return_undefined); 5087 &return_to_name, &return_undefined);
5088 5088
5089 assembler->Bind(&return_to_name); 5089 assembler->Bind(&return_to_name);
5090 { 5090 {
5091 // TODO(cbruni): inline ToName here. 5091 var_result.Bind(assembler->ToName(context, key));
5092 Callable callable = CodeFactory::ToName(assembler->isolate());
5093 var_result.Bind(assembler->CallStub(callable, context, key));
5094 assembler->Goto(&end); 5092 assembler->Goto(&end);
5095 } 5093 }
5096 5094
5097 assembler->Bind(&return_undefined); 5095 assembler->Bind(&return_undefined);
5098 { 5096 {
5099 var_result.Bind(assembler->UndefinedConstant()); 5097 var_result.Bind(assembler->UndefinedConstant());
5100 assembler->Goto(&end); 5098 assembler->Goto(&end);
5101 } 5099 }
5102 5100
5103 assembler->Bind(&end); 5101 assembler->Bind(&end);
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
5849 5847
5850 if (type == MachineType::Pointer()) { 5848 if (type == MachineType::Pointer()) {
5851 return Representation::External(); 5849 return Representation::External();
5852 } 5850 }
5853 5851
5854 return Representation::Tagged(); 5852 return Representation::Tagged();
5855 } 5853 }
5856 5854
5857 } // namespace internal 5855 } // namespace internal
5858 } // namespace v8 5856 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698