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

Side by Side Diff: src/ppc/lithium-codegen-ppc.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/mips64/lithium-mips64.cc ('k') | src/ppc/lithium-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_CODEGEN_PPC_H_ 5 #ifndef V8_PPC_LITHIUM_CODEGEN_PPC_H_
6 #define V8_PPC_LITHIUM_CODEGEN_PPC_H_ 6 #define V8_PPC_LITHIUM_CODEGEN_PPC_H_
7 7
8 #include "src/ppc/lithium-ppc.h" 8 #include "src/ppc/lithium-ppc.h"
9 9
10 #include "src/ppc/lithium-gap-resolver-ppc.h" 10 #include "src/ppc/lithium-gap-resolver-ppc.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 CRegister cr = cr7); 247 CRegister cr = cr7);
248 void EmitNumberUntagD(LNumberUntagD* instr, Register input, 248 void EmitNumberUntagD(LNumberUntagD* instr, Register input,
249 DoubleRegister result, NumberUntagDMode mode); 249 DoubleRegister result, NumberUntagDMode mode);
250 250
251 // Emits optimized code for typeof x == "y". Modifies input register. 251 // Emits optimized code for typeof x == "y". Modifies input register.
252 // Returns the condition on which a final split to 252 // Returns the condition on which a final split to
253 // true and false label should be made, to optimize fallthrough. 253 // true and false label should be made, to optimize fallthrough.
254 Condition EmitTypeofIs(Label* true_label, Label* false_label, Register input, 254 Condition EmitTypeofIs(Label* true_label, Label* false_label, Register input,
255 Handle<String> type_name); 255 Handle<String> type_name);
256 256
257 // Emits optimized code for %_IsObject(x). Preserves input register.
258 // Returns the condition on which a final split to
259 // true and false label should be made, to optimize fallthrough.
260 Condition EmitIsObject(Register input, Register temp1, Label* is_not_object,
261 Label* is_object);
262
263 // Emits optimized code for %_IsString(x). Preserves input register. 257 // Emits optimized code for %_IsString(x). Preserves input register.
264 // Returns the condition on which a final split to 258 // Returns the condition on which a final split to
265 // true and false label should be made, to optimize fallthrough. 259 // true and false label should be made, to optimize fallthrough.
266 Condition EmitIsString(Register input, Register temp1, Label* is_not_string, 260 Condition EmitIsString(Register input, Register temp1, Label* is_not_string,
267 SmiCheck check_needed); 261 SmiCheck check_needed);
268 262
269 // Emits optimized code for %_IsConstructCall(). 263 // Emits optimized code for %_IsConstructCall().
270 // Caller should branch on equal condition. 264 // Caller should branch on equal condition.
271 void EmitIsConstructCall(Register temp1, Register temp2); 265 void EmitIsConstructCall(Register temp1, Register temp2);
272 266
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 LCodeGen* codegen_; 355 LCodeGen* codegen_;
362 Label entry_; 356 Label entry_;
363 Label exit_; 357 Label exit_;
364 Label* external_exit_; 358 Label* external_exit_;
365 int instruction_index_; 359 int instruction_index_;
366 }; 360 };
367 } 361 }
368 } // namespace v8::internal 362 } // namespace v8::internal
369 363
370 #endif // V8_PPC_LITHIUM_CODEGEN_PPC_H_ 364 #endif // V8_PPC_LITHIUM_CODEGEN_PPC_H_
OLDNEW
« no previous file with comments | « src/mips64/lithium-mips64.cc ('k') | src/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698