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

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

Issue 2666283002: [turbofan] Constant propagation for JumpIfFalse/JumpIfTrue. (Closed)
Patch Set: REBASE 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/bytecode-graph-builder.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 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 2950 matching lines...) Expand 10 before | Expand all | Expand 10 after
2961 } 2961 }
2962 2962
2963 Node* CodeStubAssembler::IsJSArray(Node* object) { 2963 Node* CodeStubAssembler::IsJSArray(Node* object) {
2964 return HasInstanceType(object, JS_ARRAY_TYPE); 2964 return HasInstanceType(object, JS_ARRAY_TYPE);
2965 } 2965 }
2966 2966
2967 Node* CodeStubAssembler::IsWeakCell(Node* object) { 2967 Node* CodeStubAssembler::IsWeakCell(Node* object) {
2968 return HasInstanceType(object, WEAK_CELL_TYPE); 2968 return HasInstanceType(object, WEAK_CELL_TYPE);
2969 } 2969 }
2970 2970
2971 Node* CodeStubAssembler::IsBoolean(Node* object) {
2972 return IsBooleanMap(LoadMap(object));
2973 }
2974
2971 Node* CodeStubAssembler::IsName(Node* object) { 2975 Node* CodeStubAssembler::IsName(Node* object) {
2972 return Int32LessThanOrEqual(LoadInstanceType(object), 2976 return Int32LessThanOrEqual(LoadInstanceType(object),
2973 Int32Constant(LAST_NAME_TYPE)); 2977 Int32Constant(LAST_NAME_TYPE));
2974 } 2978 }
2975 2979
2976 Node* CodeStubAssembler::IsString(Node* object) { 2980 Node* CodeStubAssembler::IsString(Node* object) {
2977 return Int32LessThanOrEqual(LoadInstanceType(object), 2981 return Int32LessThanOrEqual(LoadInstanceType(object),
2978 Int32Constant(FIRST_NONSTRING_TYPE)); 2982 Int32Constant(FIRST_NONSTRING_TYPE));
2979 } 2983 }
2980 2984
(...skipping 5428 matching lines...) Expand 10 before | Expand all | Expand 10 after
8409 formatted.c_str(), TENURED); 8413 formatted.c_str(), TENURED);
8410 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), 8414 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(),
8411 HeapConstant(string)); 8415 HeapConstant(string));
8412 } 8416 }
8413 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); 8417 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value);
8414 #endif 8418 #endif
8415 } 8419 }
8416 8420
8417 } // namespace internal 8421 } // namespace internal
8418 } // namespace v8 8422 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698