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

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

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: cleanmerge Created 3 years, 10 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/code-stub-assembler.h ('k') | src/compiler/code-assembler.h » ('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 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 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2883 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2883 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
2884 return Int32GreaterThanOrEqual(instance_type, 2884 return Int32GreaterThanOrEqual(instance_type,
2885 Int32Constant(FIRST_JS_RECEIVER_TYPE)); 2885 Int32Constant(FIRST_JS_RECEIVER_TYPE));
2886 } 2886 }
2887 2887
2888 Node* CodeStubAssembler::IsJSReceiver(Node* object) { 2888 Node* CodeStubAssembler::IsJSReceiver(Node* object) {
2889 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); 2889 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE);
2890 return IsJSReceiverInstanceType(LoadInstanceType(object)); 2890 return IsJSReceiverInstanceType(LoadInstanceType(object));
2891 } 2891 }
2892 2892
2893 Node* CodeStubAssembler::IsJSReceiverMap(Node* map) {
2894 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE);
2895 return IsJSReceiverInstanceType(LoadMapInstanceType(map));
2896 }
2897
2893 Node* CodeStubAssembler::IsJSObject(Node* object) { 2898 Node* CodeStubAssembler::IsJSObject(Node* object) {
2894 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); 2899 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE);
2895 return Int32GreaterThanOrEqual(LoadInstanceType(object), 2900 return Int32GreaterThanOrEqual(LoadInstanceType(object),
2896 Int32Constant(FIRST_JS_RECEIVER_TYPE)); 2901 Int32Constant(FIRST_JS_RECEIVER_TYPE));
2897 } 2902 }
2898 2903
2899 Node* CodeStubAssembler::IsJSGlobalProxy(Node* object) { 2904 Node* CodeStubAssembler::IsJSGlobalProxy(Node* object) {
2900 return Word32Equal(LoadInstanceType(object), 2905 return Word32Equal(LoadInstanceType(object),
2901 Int32Constant(JS_GLOBAL_PROXY_TYPE)); 2906 Int32Constant(JS_GLOBAL_PROXY_TYPE));
2902 } 2907 }
(...skipping 5496 matching lines...) Expand 10 before | Expand all | Expand 10 after
8399 formatted.c_str(), TENURED); 8404 formatted.c_str(), TENURED);
8400 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), 8405 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(),
8401 HeapConstant(string)); 8406 HeapConstant(string));
8402 } 8407 }
8403 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); 8408 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value);
8404 #endif 8409 #endif
8405 } 8410 }
8406 8411
8407 } // namespace internal 8412 } // namespace internal
8408 } // namespace v8 8413 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/compiler/code-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698