OLD | NEW |
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 Loading... |
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; |
1328 } | 1335 } |
1329 } // NOLINT(readability/fn_size) | 1336 } // NOLINT(readability/fn_size) |
1330 | 1337 |
1331 | 1338 |
1332 // Assembles a branch after an instruction. | 1339 // Assembles a branch after an instruction. |
1333 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { | 1340 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { |
1334 IA32OperandConverter i(this, instr); | 1341 IA32OperandConverter i(this, instr); |
1335 Label::Distance flabel_distance = | 1342 Label::Distance flabel_distance = |
1336 branch->fallthru ? Label::kNear : Label::kFar; | 1343 branch->fallthru ? Label::kNear : Label::kFar; |
1337 Label* tlabel = branch->true_label; | 1344 Label* tlabel = branch->true_label; |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1911 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1918 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1912 __ Nop(padding_size); | 1919 __ Nop(padding_size); |
1913 } | 1920 } |
1914 } | 1921 } |
1915 | 1922 |
1916 #undef __ | 1923 #undef __ |
1917 | 1924 |
1918 } // namespace compiler | 1925 } // namespace compiler |
1919 } // namespace internal | 1926 } // namespace internal |
1920 } // namespace v8 | 1927 } // namespace v8 |
OLD | NEW |