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

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

Issue 11635046: Enable type feedback for branch statement and function call (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | 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 2168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 // Non-instance prototype: Fetch prototype from constructor field 2179 // Non-instance prototype: Fetch prototype from constructor field
2180 // in initial map. 2180 // in initial map.
2181 bind(&non_instance); 2181 bind(&non_instance);
2182 ldr(result, FieldMemOperand(result, Map::kConstructorOffset)); 2182 ldr(result, FieldMemOperand(result, Map::kConstructorOffset));
2183 2183
2184 // All done. 2184 // All done.
2185 bind(&done); 2185 bind(&done);
2186 } 2186 }
2187 2187
2188 2188
2189 void MacroAssembler::CallStub(CodeStub* stub, Condition cond) { 2189 void MacroAssembler::CallStub(CodeStub* stub,
2190 TypeFeedbackId ast_id,
2191 Condition cond) {
2190 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs. 2192 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs.
2191 Call(stub->GetCode(), RelocInfo::CODE_TARGET, TypeFeedbackId::None(), cond); 2193 Call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id, cond);
2192 } 2194 }
2193 2195
2194 2196
2195 void MacroAssembler::TailCallStub(CodeStub* stub, Condition cond) { 2197 void MacroAssembler::TailCallStub(CodeStub* stub, Condition cond) {
2196 ASSERT(allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe()); 2198 ASSERT(allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe());
2197 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond); 2199 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond);
2198 } 2200 }
2199 2201
2200 2202
2201 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { 2203 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) {
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
3916 void CodePatcher::EmitCondition(Condition cond) { 3918 void CodePatcher::EmitCondition(Condition cond) {
3917 Instr instr = Assembler::instr_at(masm_.pc_); 3919 Instr instr = Assembler::instr_at(masm_.pc_);
3918 instr = (instr & ~kCondMask) | cond; 3920 instr = (instr & ~kCondMask) | cond;
3919 masm_.emit(instr); 3921 masm_.emit(instr);
3920 } 3922 }
3921 3923
3922 3924
3923 } } // namespace v8::internal 3925 } } // namespace v8::internal
3924 3926
3925 #endif // V8_TARGET_ARCH_ARM 3927 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698