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

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

Issue 5699002: RFC: Switch to ast ids (instead of positions) for type feedback. (Closed)
Patch Set: Cleanup Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 // Non-instance prototype: Fetch prototype from constructor field 1033 // Non-instance prototype: Fetch prototype from constructor field
1034 // in initial map. 1034 // in initial map.
1035 bind(&non_instance); 1035 bind(&non_instance);
1036 mov(result, FieldOperand(result, Map::kConstructorOffset)); 1036 mov(result, FieldOperand(result, Map::kConstructorOffset));
1037 1037
1038 // All done. 1038 // All done.
1039 bind(&done); 1039 bind(&done);
1040 } 1040 }
1041 1041
1042 1042
1043 void MacroAssembler::CallStub(CodeStub* stub) { 1043 void MacroAssembler::CallStub(CodeStub* stub, AstId id) {
1044 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs. 1044 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs.
1045 call(stub->GetCode(), RelocInfo::CODE_TARGET); 1045 call(stub->GetCode(), RelocInfo::CODE_TARGET, id);
1046 } 1046 }
1047 1047
1048 1048
1049 MaybeObject* MacroAssembler::TryCallStub(CodeStub* stub) { 1049 MaybeObject* MacroAssembler::TryCallStub(CodeStub* stub) {
1050 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs. 1050 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs.
1051 Object* result; 1051 Object* result;
1052 { MaybeObject* maybe_result = stub->TryGetCode(); 1052 { MaybeObject* maybe_result = stub->TryGetCode();
1053 if (!maybe_result->ToObject(&result)) return maybe_result; 1053 if (!maybe_result->ToObject(&result)) return maybe_result;
1054 } 1054 }
1055 call(Handle<Code>(Code::cast(result)), RelocInfo::CODE_TARGET); 1055 call(Handle<Code>(Code::cast(result)), RelocInfo::CODE_TARGET);
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 1911
1912 // Check that the code was patched as expected. 1912 // Check that the code was patched as expected.
1913 ASSERT(masm_.pc_ == address_ + size_); 1913 ASSERT(masm_.pc_ == address_ + size_);
1914 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1914 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1915 } 1915 }
1916 1916
1917 1917
1918 } } // namespace v8::internal 1918 } } // namespace v8::internal
1919 1919
1920 #endif // V8_TARGET_ARCH_IA32 1920 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698