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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |