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

Side by Side Diff: src/x64/lithium-codegen-x64.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, 4 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/runtime/runtime-object.cc ('k') | src/x64/lithium-codegen-x64.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_X64_LITHIUM_CODEGEN_X64_H_ 5 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_
6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ 6 #define V8_X64_LITHIUM_CODEGEN_X64_H_
7 7
8 #include "src/x64/lithium-x64.h" 8 #include "src/x64/lithium-x64.h"
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 template <class InstrType> 258 template <class InstrType>
259 void EmitFalseBranch(InstrType instr, Condition cc); 259 void EmitFalseBranch(InstrType instr, Condition cc);
260 void EmitNumberUntagD(LNumberUntagD* instr, Register input, 260 void EmitNumberUntagD(LNumberUntagD* instr, Register input,
261 XMMRegister result, NumberUntagDMode mode); 261 XMMRegister result, NumberUntagDMode mode);
262 262
263 // Emits optimized code for typeof x == "y". Modifies input register. 263 // Emits optimized code for typeof x == "y". Modifies input register.
264 // Returns the condition on which a final split to 264 // Returns the condition on which a final split to
265 // true and false label should be made, to optimize fallthrough. 265 // true and false label should be made, to optimize fallthrough.
266 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); 266 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input);
267 267
268 // Emits optimized code for %_IsObject(x). Preserves input register.
269 // Returns the condition on which a final split to
270 // true and false label should be made, to optimize fallthrough.
271 Condition EmitIsObject(Register input,
272 Label* is_not_object,
273 Label* is_object);
274
275 // Emits optimized code for %_IsString(x). Preserves input register. 268 // Emits optimized code for %_IsString(x). Preserves input register.
276 // Returns the condition on which a final split to 269 // Returns the condition on which a final split to
277 // true and false label should be made, to optimize fallthrough. 270 // true and false label should be made, to optimize fallthrough.
278 Condition EmitIsString(Register input, 271 Condition EmitIsString(Register input,
279 Register temp1, 272 Register temp1,
280 Label* is_not_string, 273 Label* is_not_string,
281 SmiCheck check_needed); 274 SmiCheck check_needed);
282 275
283 // Emits optimized code for %_IsConstructCall(). 276 // Emits optimized code for %_IsConstructCall().
284 // Caller should branch on equal condition. 277 // Caller should branch on equal condition.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 Label entry_; 383 Label entry_;
391 Label exit_; 384 Label exit_;
392 Label done_; 385 Label done_;
393 Label* external_exit_; 386 Label* external_exit_;
394 int instruction_index_; 387 int instruction_index_;
395 }; 388 };
396 389
397 } } // namespace v8::internal 390 } } // namespace v8::internal
398 391
399 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 392 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698