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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 5069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5080 | 5080 |
5081 Node* has_property = GenerateHasProperty(assembler, object, key, context, | 5081 Node* has_property = GenerateHasProperty(assembler, object, key, context, |
5082 Runtime::kForInHasProperty); | 5082 Runtime::kForInHasProperty); |
5083 | 5083 |
5084 assembler->Branch( | 5084 assembler->Branch( |
5085 assembler->WordEqual(has_property, assembler->BooleanConstant(true)), | 5085 assembler->WordEqual(has_property, assembler->BooleanConstant(true)), |
5086 &return_to_name, &return_undefined); | 5086 &return_to_name, &return_undefined); |
5087 | 5087 |
5088 assembler->Bind(&return_to_name); | 5088 assembler->Bind(&return_to_name); |
5089 { | 5089 { |
5090 // TODO(cbruni): inline ToName here. | 5090 var_result.Bind(assembler->ToName(context, key)); |
5091 Callable callable = CodeFactory::ToName(assembler->isolate()); | |
5092 var_result.Bind(assembler->CallStub(callable, context, key)); | |
5093 assembler->Goto(&end); | 5091 assembler->Goto(&end); |
5094 } | 5092 } |
5095 | 5093 |
5096 assembler->Bind(&return_undefined); | 5094 assembler->Bind(&return_undefined); |
5097 { | 5095 { |
5098 var_result.Bind(assembler->UndefinedConstant()); | 5096 var_result.Bind(assembler->UndefinedConstant()); |
5099 assembler->Goto(&end); | 5097 assembler->Goto(&end); |
5100 } | 5098 } |
5101 | 5099 |
5102 assembler->Bind(&end); | 5100 assembler->Bind(&end); |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5847 | 5845 |
5848 if (type == MachineType::Pointer()) { | 5846 if (type == MachineType::Pointer()) { |
5849 return Representation::External(); | 5847 return Representation::External(); |
5850 } | 5848 } |
5851 | 5849 |
5852 return Representation::Tagged(); | 5850 return Representation::Tagged(); |
5853 } | 5851 } |
5854 | 5852 |
5855 } // namespace internal | 5853 } // namespace internal |
5856 } // namespace v8 | 5854 } // namespace v8 |
OLD | NEW |