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

Side by Side Diff: src/x87/lithium-codegen-x87.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/x64/lithium-x64.cc ('k') | src/x87/lithium-codegen-x87.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_X87_LITHIUM_CODEGEN_X87_H_ 5 #ifndef V8_X87_LITHIUM_CODEGEN_X87_H_
6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ 6 #define V8_X87_LITHIUM_CODEGEN_X87_H_
7 7
8 #include <map> 8 #include <map>
9 #include "src/x87/lithium-x87.h" 9 #include "src/x87/lithium-x87.h"
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void EmitFalseBranch(InstrType instr, Condition cc); 291 void EmitFalseBranch(InstrType instr, Condition cc);
292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input, 292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input,
293 Register temp, X87Register res_reg, 293 Register temp, X87Register res_reg,
294 NumberUntagDMode mode); 294 NumberUntagDMode mode);
295 295
296 // Emits optimized code for typeof x == "y". Modifies input register. 296 // Emits optimized code for typeof x == "y". Modifies input register.
297 // Returns the condition on which a final split to 297 // Returns the condition on which a final split to
298 // true and false label should be made, to optimize fallthrough. 298 // true and false label should be made, to optimize fallthrough.
299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); 299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input);
300 300
301 // Emits optimized code for %_IsObject(x). Preserves input register.
302 // Returns the condition on which a final split to
303 // true and false label should be made, to optimize fallthrough.
304 Condition EmitIsObject(Register input,
305 Register temp1,
306 Label* is_not_object,
307 Label* is_object);
308
309 // Emits optimized code for %_IsString(x). Preserves input register. 301 // Emits optimized code for %_IsString(x). Preserves input register.
310 // Returns the condition on which a final split to 302 // Returns the condition on which a final split to
311 // true and false label should be made, to optimize fallthrough. 303 // true and false label should be made, to optimize fallthrough.
312 Condition EmitIsString(Register input, 304 Condition EmitIsString(Register input,
313 Register temp1, 305 Register temp1,
314 Label* is_not_string, 306 Label* is_not_string,
315 SmiCheck check_needed); 307 SmiCheck check_needed);
316 308
317 // Emits optimized code for %_IsConstructCall(). 309 // Emits optimized code for %_IsConstructCall().
318 // Caller should branch on equal condition. 310 // Caller should branch on equal condition.
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 Label exit_; 495 Label exit_;
504 Label* external_exit_; 496 Label* external_exit_;
505 Label done_; 497 Label done_;
506 int instruction_index_; 498 int instruction_index_;
507 LCodeGen::X87Stack x87_stack_; 499 LCodeGen::X87Stack x87_stack_;
508 }; 500 };
509 501
510 } } // namespace v8::internal 502 } } // namespace v8::internal
511 503
512 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ 504 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698