| 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/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 Loading... |
| 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5848 | 5846 |
| 5849 if (type == MachineType::Pointer()) { | 5847 if (type == MachineType::Pointer()) { |
| 5850 return Representation::External(); | 5848 return Representation::External(); |
| 5851 } | 5849 } |
| 5852 | 5850 |
| 5853 return Representation::Tagged(); | 5851 return Representation::Tagged(); |
| 5854 } | 5852 } |
| 5855 | 5853 |
| 5856 } // namespace internal | 5854 } // namespace internal |
| 5857 } // namespace v8 | 5855 } // namespace v8 |
| OLD | NEW |