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

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

Issue 2570213002: [stubs] Enable machine graph verification for CodeStubAssembler and friends by default in debug mode (Closed)
Patch Set: Created 4 years 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
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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // TODO(ishell): enable verification once all issues are fixed. 440 return compiler::CodeAssembler::GenerateCode(&state);
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);
444 } 441 }
445 442
446 #define ACCESSOR_ASSEMBLER(Name) \ 443 #define ACCESSOR_ASSEMBLER(Name) \
447 void Name##Stub::GenerateAssembly(CodeAssemblerState* state) const { \ 444 void Name##Stub::GenerateAssembly(CodeAssemblerState* state) const { \
448 AccessorAssembler::Generate##Name(state); \ 445 AccessorAssembler::Generate##Name(state); \
449 } 446 }
450 447
451 ACCESSOR_ASSEMBLER(LoadIC) 448 ACCESSOR_ASSEMBLER(LoadIC)
452 ACCESSOR_ASSEMBLER(LoadICTrampoline) 449 ACCESSOR_ASSEMBLER(LoadICTrampoline)
453 ACCESSOR_ASSEMBLER(KeyedLoadICTF) 450 ACCESSOR_ASSEMBLER(KeyedLoadICTF)
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after
3220 } 3217 }
3221 3218
3222 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 3219 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
3223 : PlatformCodeStub(isolate) {} 3220 : PlatformCodeStub(isolate) {}
3224 3221
3225 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) 3222 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
3226 : PlatformCodeStub(isolate) {} 3223 : PlatformCodeStub(isolate) {}
3227 3224
3228 } // namespace internal 3225 } // namespace internal
3229 } // namespace v8 3226 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698