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

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

Issue 7077: Under construction: Preliminary change to support per... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 // Non-instance prototype: Fetch prototype from constructor field 628 // Non-instance prototype: Fetch prototype from constructor field
629 // in initial map. 629 // in initial map.
630 bind(&non_instance); 630 bind(&non_instance);
631 mov(result, FieldOperand(result, Map::kConstructorOffset)); 631 mov(result, FieldOperand(result, Map::kConstructorOffset));
632 632
633 // All done. 633 // All done.
634 bind(&done); 634 bind(&done);
635 } 635 }
636 636
637 637
638 void MacroAssembler::CallStub(CodeStub* stub) { 638 void MacroAssembler::CallStub(CodeStub* stub, RelocInfo::Mode mode) {
639 ASSERT(allow_stub_calls()); // calls are not allowed in some stubs 639 ASSERT(allow_stub_calls()); // calls are not allowed in some stubs
640 call(stub->GetCode(), RelocInfo::CODE_TARGET); 640 call(stub->GetCode(), mode);
641 } 641 }
642 642
643 643
644 void MacroAssembler::StubReturn(int argc) { 644 void MacroAssembler::StubReturn(int argc) {
645 ASSERT(argc >= 1 && generating_stub()); 645 ASSERT(argc >= 1 && generating_stub());
646 ret((argc - 1) * kPointerSize); 646 ret((argc - 1) * kPointerSize);
647 } 647 }
648 648
649 649
650 void MacroAssembler::IllegalOperation(int num_arguments) { 650 void MacroAssembler::IllegalOperation(int num_arguments) {
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 // Indicate that code has changed. 961 // Indicate that code has changed.
962 CPU::FlushICache(address_, size_); 962 CPU::FlushICache(address_, size_);
963 963
964 // Check that the code was patched as expected. 964 // Check that the code was patched as expected.
965 ASSERT(masm_.pc_ == address_ + size_); 965 ASSERT(masm_.pc_ == address_ + size_);
966 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 966 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
967 } 967 }
968 968
969 969
970 } } // namespace v8::internal 970 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698