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

Side by Side Diff: src/mips/lithium-codegen-mips.h

Issue 1313903003: [runtime] Remove the redundant %_IsObject intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Michis comment. Created 5 years, 3 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/macros.py ('k') | src/mips/lithium-codegen-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS_LITHIUM_CODEGEN_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
7 7
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/lithium-codegen.h" 9 #include "src/lithium-codegen.h"
10 #include "src/mips/lithium-gap-resolver-mips.h" 10 #include "src/mips/lithium-gap-resolver-mips.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // true and false label should be made, to optimize fallthrough. 295 // true and false label should be made, to optimize fallthrough.
296 // Returns two registers in cmp1 and cmp2 that can be used in the 296 // Returns two registers in cmp1 and cmp2 that can be used in the
297 // Branch instruction after EmitTypeofIs. 297 // Branch instruction after EmitTypeofIs.
298 Condition EmitTypeofIs(Label* true_label, 298 Condition EmitTypeofIs(Label* true_label,
299 Label* false_label, 299 Label* false_label,
300 Register input, 300 Register input,
301 Handle<String> type_name, 301 Handle<String> type_name,
302 Register* cmp1, 302 Register* cmp1,
303 Operand* cmp2); 303 Operand* cmp2);
304 304
305 // Emits optimized code for %_IsObject(x). Preserves input register.
306 // Returns the condition on which a final split to
307 // true and false label should be made, to optimize fallthrough.
308 Condition EmitIsObject(Register input,
309 Register temp1,
310 Register temp2,
311 Label* is_not_object,
312 Label* is_object);
313
314 // Emits optimized code for %_IsString(x). Preserves input register. 305 // Emits optimized code for %_IsString(x). Preserves input register.
315 // Returns the condition on which a final split to 306 // Returns the condition on which a final split to
316 // true and false label should be made, to optimize fallthrough. 307 // true and false label should be made, to optimize fallthrough.
317 Condition EmitIsString(Register input, 308 Condition EmitIsString(Register input,
318 Register temp1, 309 Register temp1,
319 Label* is_not_string, 310 Label* is_not_string,
320 SmiCheck check_needed); 311 SmiCheck check_needed);
321 312
322 // Emits optimized code for %_IsConstructCall(). 313 // Emits optimized code for %_IsConstructCall().
323 // Caller should branch on equal condition. 314 // Caller should branch on equal condition.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 LCodeGen* codegen_; 422 LCodeGen* codegen_;
432 Label entry_; 423 Label entry_;
433 Label exit_; 424 Label exit_;
434 Label* external_exit_; 425 Label* external_exit_;
435 int instruction_index_; 426 int instruction_index_;
436 }; 427 };
437 428
438 } } // namespace v8::internal 429 } } // namespace v8::internal
439 430
440 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 431 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698