| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 } | 430 } |
| 431 } | 431 } |
| 432 | 432 |
| 433 Handle<Code> TurboFanCodeStub::GenerateCode() { | 433 Handle<Code> TurboFanCodeStub::GenerateCode() { |
| 434 const char* name = CodeStub::MajorName(MajorKey()); | 434 const char* name = CodeStub::MajorName(MajorKey()); |
| 435 Zone zone(isolate()->allocator(), ZONE_NAME); | 435 Zone zone(isolate()->allocator(), ZONE_NAME); |
| 436 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); | 436 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); |
| 437 compiler::CodeAssemblerState state(isolate(), &zone, descriptor, | 437 compiler::CodeAssemblerState state(isolate(), &zone, descriptor, |
| 438 GetCodeFlags(), name); | 438 GetCodeFlags(), name); |
| 439 GenerateAssembly(&state); | 439 GenerateAssembly(&state); |
| 440 return compiler::CodeAssembler::GenerateCode(&state); | 440 // TODO(ishell): enable verification once all issues are fixed. |
| 441 // Enable verification only in mksnapshot. |
| 442 bool verify_graph = FLAG_csa_verify && FLAG_startup_blob != nullptr; |
| 443 return compiler::CodeAssembler::GenerateCode(&state, verify_graph); |
| 441 } | 444 } |
| 442 | 445 |
| 443 #define ACCESSOR_ASSEMBLER(Name) \ | 446 #define ACCESSOR_ASSEMBLER(Name) \ |
| 444 void Name##Stub::GenerateAssembly(CodeAssemblerState* state) const { \ | 447 void Name##Stub::GenerateAssembly(CodeAssemblerState* state) const { \ |
| 445 AccessorAssembler::Generate##Name(state); \ | 448 AccessorAssembler::Generate##Name(state); \ |
| 446 } | 449 } |
| 447 | 450 |
| 448 ACCESSOR_ASSEMBLER(LoadIC) | 451 ACCESSOR_ASSEMBLER(LoadIC) |
| 449 ACCESSOR_ASSEMBLER(LoadICTrampoline) | 452 ACCESSOR_ASSEMBLER(LoadICTrampoline) |
| 450 ACCESSOR_ASSEMBLER(KeyedLoadICTF) | 453 ACCESSOR_ASSEMBLER(KeyedLoadICTF) |
| (...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3217 } | 3220 } |
| 3218 | 3221 |
| 3219 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) | 3222 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) |
| 3220 : PlatformCodeStub(isolate) {} | 3223 : PlatformCodeStub(isolate) {} |
| 3221 | 3224 |
| 3222 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) | 3225 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) |
| 3223 : PlatformCodeStub(isolate) {} | 3226 : PlatformCodeStub(isolate) {} |
| 3224 | 3227 |
| 3225 } // namespace internal | 3228 } // namespace internal |
| 3226 } // namespace v8 | 3229 } // namespace v8 |
| OLD | NEW |