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

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

Issue 132963012: Pretenure call new support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 10 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
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 2593 matching lines...) Expand 10 before | Expand all | Expand 10 after
3643 cmp(scratch1, Immediate(DICTIONARY_ELEMENTS)); 3657 cmp(scratch1, Immediate(DICTIONARY_ELEMENTS));
3644 j(equal, found); 3658 j(equal, found);
3645 mov(current, FieldOperand(current, Map::kPrototypeOffset)); 3659 mov(current, FieldOperand(current, Map::kPrototypeOffset));
3646 cmp(current, Immediate(factory->null_value())); 3660 cmp(current, Immediate(factory->null_value()));
3647 j(not_equal, &loop_again); 3661 j(not_equal, &loop_again);
3648 } 3662 }
3649 3663
3650 } } // namespace v8::internal 3664 } } // namespace v8::internal
3651 3665
3652 #endif // V8_TARGET_ARCH_IA32 3666 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698