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

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 7090003: MIPS: port Fix receiver for calls to strict-mode and builtin functions .... (Closed)
Patch Set: Created 9 years, 6 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
« no previous file with comments | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 2303
2304 // If fast case code has been generated, emit code to push the 2304 // If fast case code has been generated, emit code to push the
2305 // function and receiver and have the slow path jump around this 2305 // function and receiver and have the slow path jump around this
2306 // code. 2306 // code.
2307 if (done.is_linked()) { 2307 if (done.is_linked()) {
2308 Label call; 2308 Label call;
2309 __ Branch(&call); 2309 __ Branch(&call);
2310 __ bind(&done); 2310 __ bind(&done);
2311 // Push function. 2311 // Push function.
2312 __ push(v0); 2312 __ push(v0);
2313 // Push global receiver. 2313 // The receiver is implicitly the global receiver. Indicate this
2314 __ lw(a1, GlobalObjectOperand()); 2314 // by passing the hole to the call function stub.
2315 __ lw(a1, FieldMemOperand(a1, GlobalObject::kGlobalReceiverOffset)); 2315 __ LoadRoot(a1, Heap::kTheHoleValueRootIndex);
2316 __ push(a1); 2316 __ push(a1);
2317 __ bind(&call); 2317 __ bind(&call);
2318 } 2318 }
2319 2319
2320 // The receiver is either the global receiver or an object found 2320 // The receiver is either the global receiver or an object found
2321 // by LoadContextSlot. That object could be the hole if the 2321 // by LoadContextSlot. That object could be the hole if the
2322 // receiver is implicitly the global object. 2322 // receiver is implicitly the global object.
2323 EmitCallWithStub(expr, RECEIVER_MIGHT_BE_IMPLICIT); 2323 EmitCallWithStub(expr, RECEIVER_MIGHT_BE_IMPLICIT);
2324 } else if (fun->AsProperty() != NULL) { 2324 } else if (fun->AsProperty() != NULL) {
2325 // Call to an object property. 2325 // Call to an object property.
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after
4379 __ Addu(at, a1, Operand(masm_->CodeObject())); 4379 __ Addu(at, a1, Operand(masm_->CodeObject()));
4380 __ Jump(at); 4380 __ Jump(at);
4381 } 4381 }
4382 4382
4383 4383
4384 #undef __ 4384 #undef __
4385 4385
4386 } } // namespace v8::internal 4386 } } // namespace v8::internal
4387 4387
4388 #endif // V8_TARGET_ARCH_MIPS 4388 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698