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

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

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: Refactor + add more tests 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
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 2873 matching lines...) Expand 10 before | Expand all | Expand 10 after
2884 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2884 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
2885 return Int32GreaterThanOrEqual(instance_type, 2885 return Int32GreaterThanOrEqual(instance_type,
2886 Int32Constant(FIRST_JS_RECEIVER_TYPE)); 2886 Int32Constant(FIRST_JS_RECEIVER_TYPE));
2887 } 2887 }
2888 2888
2889 Node* CodeStubAssembler::IsJSReceiver(Node* object) { 2889 Node* CodeStubAssembler::IsJSReceiver(Node* object) {
2890 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); 2890 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE);
2891 return IsJSReceiverInstanceType(LoadInstanceType(object)); 2891 return IsJSReceiverInstanceType(LoadInstanceType(object));
2892 } 2892 }
2893 2893
2894 Node* CodeStubAssembler::IsJSReceiverMap(Node* map) {
2895 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE);
2896 return IsJSReceiverInstanceType(LoadMapInstanceType(map));
2897 }
2898
2894 Node* CodeStubAssembler::IsJSObject(Node* object) { 2899 Node* CodeStubAssembler::IsJSObject(Node* object) {
2895 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); 2900 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE);
2896 return Int32GreaterThanOrEqual(LoadInstanceType(object), 2901 return Int32GreaterThanOrEqual(LoadInstanceType(object),
2897 Int32Constant(FIRST_JS_RECEIVER_TYPE)); 2902 Int32Constant(FIRST_JS_RECEIVER_TYPE));
2898 } 2903 }
2899 2904
2900 Node* CodeStubAssembler::IsJSGlobalProxy(Node* object) { 2905 Node* CodeStubAssembler::IsJSGlobalProxy(Node* object) {
2901 return Word32Equal(LoadInstanceType(object), 2906 return Word32Equal(LoadInstanceType(object),
2902 Int32Constant(JS_GLOBAL_PROXY_TYPE)); 2907 Int32Constant(JS_GLOBAL_PROXY_TYPE));
2903 } 2908 }
(...skipping 5455 matching lines...) Expand 10 before | Expand all | Expand 10 after
8359 formatted.c_str(), TENURED); 8364 formatted.c_str(), TENURED);
8360 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), 8365 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(),
8361 HeapConstant(string)); 8366 HeapConstant(string));
8362 } 8367 }
8363 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); 8368 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value);
8364 #endif 8369 #endif
8365 } 8370 }
8366 8371
8367 } // namespace internal 8372 } // namespace internal
8368 } // namespace v8 8373 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698