| 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 4260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4271 Runtime::FunctionForId(Runtime::kGrowArrayElements)->entry); | 4271 Runtime::FunctionForId(Runtime::kGrowArrayElements)->entry); |
| 4272 } | 4272 } |
| 4273 | 4273 |
| 4274 | 4274 |
| 4275 void TypeofStub::GenerateAheadOfTime(Isolate* isolate) { | 4275 void TypeofStub::GenerateAheadOfTime(Isolate* isolate) { |
| 4276 TypeofStub stub(isolate); | 4276 TypeofStub stub(isolate); |
| 4277 stub.GetCode(); | 4277 stub.GetCode(); |
| 4278 } | 4278 } |
| 4279 | 4279 |
| 4280 // static | 4280 // static |
| 4281 void BoomStub::GenerateAssembly(CodeStubAssembler* assembler) const { |
| 4282 assembler->Boom(); |
| 4283 } |
| 4284 |
| 4285 void BoomStub::GenerateAheadOfTime(Isolate* isolate) { |
| 4286 BoomStub stub(isolate); |
| 4287 stub.GetCode(); |
| 4288 } |
| 4289 |
| 4290 // static |
| 4281 compiler::Node* HasPropertyStub::Generate(CodeStubAssembler* assembler, | 4291 compiler::Node* HasPropertyStub::Generate(CodeStubAssembler* assembler, |
| 4282 compiler::Node* key, | 4292 compiler::Node* key, |
| 4283 compiler::Node* object, | 4293 compiler::Node* object, |
| 4284 compiler::Node* context) { | 4294 compiler::Node* context) { |
| 4285 typedef compiler::Node Node; | 4295 typedef compiler::Node Node; |
| 4286 typedef CodeStubAssembler::Label Label; | 4296 typedef CodeStubAssembler::Label Label; |
| 4287 typedef CodeStubAssembler::Variable Variable; | 4297 typedef CodeStubAssembler::Variable Variable; |
| 4288 | 4298 |
| 4289 Label call_runtime(assembler, Label::kDeferred), return_true(assembler), | 4299 Label call_runtime(assembler, Label::kDeferred), return_true(assembler), |
| 4290 return_false(assembler), end(assembler); | 4300 return_false(assembler), end(assembler); |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4739 if (type->Is(Type::UntaggedPointer())) { | 4749 if (type->Is(Type::UntaggedPointer())) { |
| 4740 return Representation::External(); | 4750 return Representation::External(); |
| 4741 } | 4751 } |
| 4742 | 4752 |
| 4743 DCHECK(!type->Is(Type::Untagged())); | 4753 DCHECK(!type->Is(Type::Untagged())); |
| 4744 return Representation::Tagged(); | 4754 return Representation::Tagged(); |
| 4745 } | 4755 } |
| 4746 | 4756 |
| 4747 } // namespace internal | 4757 } // namespace internal |
| 4748 } // namespace v8 | 4758 } // namespace v8 |
| OLD | NEW |