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

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

Issue 2568173002: [interpreter][stubs] Don't modify FLAG_csa_verify flag to make TSAN happy. (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
« no previous file with comments | « src/builtins/builtins.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 440 return compiler::CodeAssembler::GenerateCode(&state);
441 // TODO(ishell): remove this when code stub assembler graphs verification
442 // is enabled for all stubs.
443 bool saved_csa_verify = FLAG_csa_verify;
444 // Enable verification only in mksnapshot.
445 FLAG_csa_verify = DEBUG_BOOL && FLAG_startup_blob != nullptr;
446 Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state);
447 FLAG_csa_verify = saved_csa_verify;
448 return code;
449 } 441 }
450 442
451 #define ACCESSOR_ASSEMBLER(Name) \ 443 #define ACCESSOR_ASSEMBLER(Name) \
452 void Name##Stub::GenerateAssembly(CodeAssemblerState* state) const { \ 444 void Name##Stub::GenerateAssembly(CodeAssemblerState* state) const { \
453 AccessorAssembler::Generate##Name(state); \ 445 AccessorAssembler::Generate##Name(state); \
454 } 446 }
455 447
456 ACCESSOR_ASSEMBLER(LoadIC) 448 ACCESSOR_ASSEMBLER(LoadIC)
457 ACCESSOR_ASSEMBLER(LoadICTrampoline) 449 ACCESSOR_ASSEMBLER(LoadICTrampoline)
458 ACCESSOR_ASSEMBLER(KeyedLoadICTF) 450 ACCESSOR_ASSEMBLER(KeyedLoadICTF)
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after
3225 } 3217 }
3226 3218
3227 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 3219 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
3228 : PlatformCodeStub(isolate) {} 3220 : PlatformCodeStub(isolate) {}
3229 3221
3230 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) 3222 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
3231 : PlatformCodeStub(isolate) {} 3223 : PlatformCodeStub(isolate) {}
3232 3224
3233 } // namespace internal 3225 } // namespace internal
3234 } // namespace v8 3226 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698