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

Side by Side Diff: src/compiler/code-stub-assembler.cc

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merge master + reduce kSlotIndexBits 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.h ('k') | src/ia32/code-stubs-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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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-stub-assembler.h" 5 #include "src/compiler/code-stub-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 MachineRepresentation::kWord16, result, 1269 MachineRepresentation::kWord16, result,
1270 IntPtrConstant(SeqTwoByteString::kHeaderSize - kHeapObjectTag), code); 1270 IntPtrConstant(SeqTwoByteString::kHeaderSize - kHeapObjectTag), code);
1271 var_result.Bind(result); 1271 var_result.Bind(result);
1272 Goto(&if_done); 1272 Goto(&if_done);
1273 } 1273 }
1274 1274
1275 Bind(&if_done); 1275 Bind(&if_done);
1276 return var_result.value(); 1276 return var_result.value();
1277 } 1277 }
1278 1278
1279 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) {
1280 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript,
1281 value);
1282 }
1283
1279 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, 1284 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true,
1280 Label* if_false) { 1285 Label* if_false) {
1281 Label if_condition_is_true(this), if_condition_is_false(this); 1286 Label if_condition_is_true(this), if_condition_is_false(this);
1282 Branch(condition, &if_condition_is_true, &if_condition_is_false); 1287 Branch(condition, &if_condition_is_true, &if_condition_is_false);
1283 Bind(&if_condition_is_true); 1288 Bind(&if_condition_is_true);
1284 Goto(if_true); 1289 Goto(if_true);
1285 Bind(&if_condition_is_false); 1290 Bind(&if_condition_is_false);
1286 Goto(if_false); 1291 Goto(if_false);
1287 } 1292 }
1288 1293
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 } 1719 }
1715 } 1720 }
1716 } 1721 }
1717 1722
1718 bound_ = true; 1723 bound_ = true;
1719 } 1724 }
1720 1725
1721 } // namespace compiler 1726 } // namespace compiler
1722 } // namespace internal 1727 } // namespace internal
1723 } // namespace v8 1728 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698