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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: call code stub from TF Created 4 years, 10 months 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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 void FullCodeGenerator::EmitToObject(CallRuntime* expr) { 538 void FullCodeGenerator::EmitToObject(CallRuntime* expr) {
539 EmitIntrinsicAsStubCall(expr, CodeFactory::ToObject(isolate())); 539 EmitIntrinsicAsStubCall(expr, CodeFactory::ToObject(isolate()));
540 } 540 }
541 541
542 542
543 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { 543 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) {
544 EmitIntrinsicAsStubCall(expr, CodeFactory::RegExpConstructResult(isolate())); 544 EmitIntrinsicAsStubCall(expr, CodeFactory::RegExpConstructResult(isolate()));
545 } 545 }
546 546
547 547
548 void FullCodeGenerator::EmitAtomicsLoad(CallRuntime* expr) {
549 EmitIntrinsicAsStubCall(expr, CodeFactory::AtomicsLoad(isolate()));
550 }
551
552
548 bool RecordStatementPosition(MacroAssembler* masm, int pos) { 553 bool RecordStatementPosition(MacroAssembler* masm, int pos) {
549 if (pos == RelocInfo::kNoPosition) return false; 554 if (pos == RelocInfo::kNoPosition) return false;
550 masm->positions_recorder()->RecordStatementPosition(pos); 555 masm->positions_recorder()->RecordStatementPosition(pos);
551 masm->positions_recorder()->RecordPosition(pos); 556 masm->positions_recorder()->RecordPosition(pos);
552 return masm->positions_recorder()->WriteRecordedPositions(); 557 return masm->positions_recorder()->WriteRecordedPositions();
553 } 558 }
554 559
555 560
556 bool RecordPosition(MacroAssembler* masm, int pos) { 561 bool RecordPosition(MacroAssembler* masm, int pos) {
557 if (pos == RelocInfo::kNoPosition) return false; 562 if (pos == RelocInfo::kNoPosition) return false;
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1740 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1736 var->initializer_position() >= proxy->position(); 1741 var->initializer_position() >= proxy->position();
1737 } 1742 }
1738 1743
1739 1744
1740 #undef __ 1745 #undef __
1741 1746
1742 1747
1743 } // namespace internal 1748 } // namespace internal
1744 } // namespace v8 1749 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698