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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 197643008: Macro assembler functions for pretenure call new. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/x64/macro-assembler-x64.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 Check(not_equal, kOperandIsASmiAndNotAName); 1030 Check(not_equal, kOperandIsASmiAndNotAName);
1031 push(object); 1031 push(object);
1032 mov(object, FieldOperand(object, HeapObject::kMapOffset)); 1032 mov(object, FieldOperand(object, HeapObject::kMapOffset));
1033 CmpInstanceType(object, LAST_NAME_TYPE); 1033 CmpInstanceType(object, LAST_NAME_TYPE);
1034 pop(object); 1034 pop(object);
1035 Check(below_equal, kOperandIsNotAName); 1035 Check(below_equal, kOperandIsNotAName);
1036 } 1036 }
1037 } 1037 }
1038 1038
1039 1039
1040 void MacroAssembler::AssertUndefinedOrAllocationSite(Register object) {
1041 if (emit_debug_code()) {
1042 Label done_checking;
1043 AssertNotSmi(object);
1044 cmp(object, isolate()->factory()->undefined_value());
1045 j(equal, &done_checking);
1046 cmp(FieldOperand(object, 0),
1047 Immediate(isolate()->factory()->allocation_site_map()));
1048 Assert(equal, kExpectedUndefinedOrCell);
1049 bind(&done_checking);
1050 }
1051 }
1052
1053
1040 void MacroAssembler::AssertNotSmi(Register object) { 1054 void MacroAssembler::AssertNotSmi(Register object) {
1041 if (emit_debug_code()) { 1055 if (emit_debug_code()) {
1042 test(object, Immediate(kSmiTagMask)); 1056 test(object, Immediate(kSmiTagMask));
1043 Check(not_equal, kOperandIsASmi); 1057 Check(not_equal, kOperandIsASmi);
1044 } 1058 }
1045 } 1059 }
1046 1060
1047 1061
1048 void MacroAssembler::Prologue(PrologueFrameMode frame_mode) { 1062 void MacroAssembler::Prologue(PrologueFrameMode frame_mode) {
1049 if (frame_mode == BUILD_STUB_FRAME) { 1063 if (frame_mode == BUILD_STUB_FRAME) {
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
3621 imul(dividend); 3635 imul(dividend);
3622 if (divisor > 0 && ms.multiplier() < 0) add(edx, dividend); 3636 if (divisor > 0 && ms.multiplier() < 0) add(edx, dividend);
3623 if (divisor < 0 && ms.multiplier() > 0) sub(edx, dividend); 3637 if (divisor < 0 && ms.multiplier() > 0) sub(edx, dividend);
3624 if (ms.shift() > 0) sar(edx, ms.shift()); 3638 if (ms.shift() > 0) sar(edx, ms.shift());
3625 } 3639 }
3626 3640
3627 3641
3628 } } // namespace v8::internal 3642 } } // namespace v8::internal
3629 3643
3630 #endif // V8_TARGET_ARCH_IA32 3644 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698