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

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

Issue 2567333002: [promises] port NewPromiseCapability to TF (Closed)
Patch Set: fix cctests and stuff Created 4 years 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/code-stub-assembler.h" 4 #include "src/code-stub-assembler.h"
5 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/frames-inl.h" 6 #include "src/frames-inl.h"
7 #include "src/frames.h" 7 #include "src/frames.h"
8 #include "src/promise-utils.h"
gsathya 2016/12/21 01:02:33 Is this needed?
8 9
9 namespace v8 { 10 namespace v8 {
10 namespace internal { 11 namespace internal {
11 12
12 using compiler::Node; 13 using compiler::Node;
13 14
14 CodeStubAssembler::CodeStubAssembler(compiler::CodeAssemblerState* state) 15 CodeStubAssembler::CodeStubAssembler(compiler::CodeAssemblerState* state)
15 : compiler::CodeAssembler(state) { 16 : compiler::CodeAssembler(state) {
16 if (DEBUG_BOOL && FLAG_csa_trap_on_node != nullptr) { 17 if (DEBUG_BOOL && FLAG_csa_trap_on_node != nullptr) {
17 HandleBreakOnNode(); 18 HandleBreakOnNode();
(...skipping 8349 matching lines...) Expand 10 before | Expand all | Expand 10 after
8367 Heap::kUndefinedValueRootIndex); 8368 Heap::kUndefinedValueRootIndex);
8368 StoreObjectFieldRoot(result, PromiseReactionJobInfo::kDebugNameOffset, 8369 StoreObjectFieldRoot(result, PromiseReactionJobInfo::kDebugNameOffset,
8369 Heap::kUndefinedValueRootIndex); 8370 Heap::kUndefinedValueRootIndex);
8370 StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kContextOffset, 8371 StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kContextOffset,
8371 context); 8372 context);
8372 return result; 8373 return result;
8373 } 8374 }
8374 8375
8375 } // namespace internal 8376 } // namespace internal
8376 } // namespace v8 8377 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698