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

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

Issue 2744173002: [csa] Remove context inputs from StrictEqual, SameValue and Typeof. (Closed)
Patch Set: Created 3 years, 9 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/builtins/builtins-regexp.cc ('k') | src/code-stub-assembler.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 4
5 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 Node* rhs, Node* context); 1197 Node* rhs, Node* context);
1198 1198
1199 void BranchIfNumericRelationalComparison(RelationalComparisonMode mode, 1199 void BranchIfNumericRelationalComparison(RelationalComparisonMode mode,
1200 Node* lhs, Node* rhs, Label* if_true, 1200 Node* lhs, Node* rhs, Label* if_true,
1201 Label* if_false); 1201 Label* if_false);
1202 1202
1203 void GotoUnlessNumberLessThan(Node* lhs, Node* rhs, Label* if_false); 1203 void GotoUnlessNumberLessThan(Node* lhs, Node* rhs, Label* if_false);
1204 1204
1205 Node* Equal(Node* lhs, Node* rhs, Node* context); 1205 Node* Equal(Node* lhs, Node* rhs, Node* context);
1206 1206
1207 Node* StrictEqual(Node* lhs, Node* rhs, Node* context); 1207 Node* StrictEqual(Node* lhs, Node* rhs);
1208 1208
1209 // ECMA#sec-samevalue 1209 // ECMA#sec-samevalue
1210 // Similar to StrictEqual except that NaNs are treated as equal and minus zero 1210 // Similar to StrictEqual except that NaNs are treated as equal and minus zero
1211 // differs from positive zero. 1211 // differs from positive zero.
1212 // Unlike Equal and StrictEqual, returns a value suitable for use in Branch 1212 // Unlike Equal and StrictEqual, returns a value suitable for use in Branch
1213 // instructions, e.g. Branch(SameValue(...), &label). 1213 // instructions, e.g. Branch(SameValue(...), &label).
1214 Node* SameValue(Node* lhs, Node* rhs, Node* context); 1214 Node* SameValue(Node* lhs, Node* rhs);
1215 1215
1216 Node* HasProperty( 1216 Node* HasProperty(
1217 Node* object, Node* key, Node* context, 1217 Node* object, Node* key, Node* context,
1218 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty); 1218 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty);
1219 1219
1220 Node* ClassOf(Node* object); 1220 Node* ClassOf(Node* object);
1221 1221
1222 Node* Typeof(Node* value, Node* context); 1222 Node* Typeof(Node* value);
1223 1223
1224 Node* GetSuperConstructor(Node* value, Node* context); 1224 Node* GetSuperConstructor(Node* value, Node* context);
1225 1225
1226 Node* InstanceOf(Node* object, Node* callable, Node* context); 1226 Node* InstanceOf(Node* object, Node* callable, Node* context);
1227 1227
1228 // Debug helpers 1228 // Debug helpers
1229 Node* IsDebugActive(); 1229 Node* IsDebugActive();
1230 1230
1231 // TypedArray/ArrayBuffer helpers 1231 // TypedArray/ArrayBuffer helpers
1232 Node* IsDetachedBuffer(Node* buffer); 1232 Node* IsDetachedBuffer(Node* buffer);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 } 1412 }
1413 #else 1413 #else
1414 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1414 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1415 #endif 1415 #endif
1416 1416
1417 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1417 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1418 1418
1419 } // namespace internal 1419 } // namespace internal
1420 } // namespace v8 1420 } // namespace v8
1421 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1421 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-regexp.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698