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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 1895643002: Revert of [Atomics] Remove Atomics code stubs; use TF ops (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/compiler/ia32/instruction-selector-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 case kIA32StackCheck: { 1318 case kIA32StackCheck: {
1319 ExternalReference const stack_limit = 1319 ExternalReference const stack_limit =
1320 ExternalReference::address_of_stack_limit(isolate()); 1320 ExternalReference::address_of_stack_limit(isolate());
1321 __ cmp(esp, Operand::StaticVariable(stack_limit)); 1321 __ cmp(esp, Operand::StaticVariable(stack_limit));
1322 break; 1322 break;
1323 } 1323 }
1324 case kCheckedLoadWord64: 1324 case kCheckedLoadWord64:
1325 case kCheckedStoreWord64: 1325 case kCheckedStoreWord64:
1326 UNREACHABLE(); // currently unsupported checked int64 load/store. 1326 UNREACHABLE(); // currently unsupported checked int64 load/store.
1327 break; 1327 break;
1328 case kAtomicLoadInt8:
1329 case kAtomicLoadUint8:
1330 case kAtomicLoadInt16:
1331 case kAtomicLoadUint16:
1332 case kAtomicLoadWord32:
1333 UNREACHABLE(); // Won't be generated by instruction selector.
1334 break;
1335 } 1328 }
1336 } // NOLINT(readability/fn_size) 1329 } // NOLINT(readability/fn_size)
1337 1330
1338 1331
1339 // Assembles a branch after an instruction. 1332 // Assembles a branch after an instruction.
1340 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { 1333 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) {
1341 IA32OperandConverter i(this, instr); 1334 IA32OperandConverter i(this, instr);
1342 Label::Distance flabel_distance = 1335 Label::Distance flabel_distance =
1343 branch->fallthru ? Label::kNear : Label::kFar; 1336 branch->fallthru ? Label::kNear : Label::kFar;
1344 Label* tlabel = branch->true_label; 1337 Label* tlabel = branch->true_label;
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1911 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1919 __ Nop(padding_size); 1912 __ Nop(padding_size);
1920 } 1913 }
1921 } 1914 }
1922 1915
1923 #undef __ 1916 #undef __
1924 1917
1925 } // namespace compiler 1918 } // namespace compiler
1926 } // namespace internal 1919 } // namespace internal
1927 } // namespace v8 1920 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698