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

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

Issue 8518001: Make eval compilation cache calling scope sensitive. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 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 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 int receiver_offset = 2 + info_->scope()->num_parameters(); 2264 int receiver_offset = 2 + info_->scope()->num_parameters();
2265 __ lw(a1, MemOperand(fp, receiver_offset * kPointerSize)); 2265 __ lw(a1, MemOperand(fp, receiver_offset * kPointerSize));
2266 __ push(a1); 2266 __ push(a1);
2267 // Push the strict mode flag. In harmony mode every eval call 2267 // Push the strict mode flag. In harmony mode every eval call
2268 // is a strict mode eval call. 2268 // is a strict mode eval call.
2269 StrictModeFlag strict_mode = 2269 StrictModeFlag strict_mode =
2270 FLAG_harmony_scoping ? kStrictMode : strict_mode_flag(); 2270 FLAG_harmony_scoping ? kStrictMode : strict_mode_flag();
2271 __ li(a1, Operand(Smi::FromInt(strict_mode))); 2271 __ li(a1, Operand(Smi::FromInt(strict_mode)));
2272 __ push(a1); 2272 __ push(a1);
2273 2273
2274 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 4); 2274 // Push the start position of the scope the calls resides in.
2275 __ li(a1, Operand(Smi::FromInt(scope()->start_position())));
2276 __ push(a1);
2277
2278 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5);
2275 } 2279 }
2276 2280
2277 2281
2278 void FullCodeGenerator::VisitCall(Call* expr) { 2282 void FullCodeGenerator::VisitCall(Call* expr) {
2279 #ifdef DEBUG 2283 #ifdef DEBUG
2280 // We want to verify that RecordJSReturnSite gets called on all paths 2284 // We want to verify that RecordJSReturnSite gets called on all paths
2281 // through this function. Avoid early returns. 2285 // through this function. Avoid early returns.
2282 expr->return_is_recorded_ = false; 2286 expr->return_is_recorded_ = false;
2283 #endif 2287 #endif
2284 2288
(...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after
4430 *context_length = 0; 4434 *context_length = 0;
4431 return previous_; 4435 return previous_;
4432 } 4436 }
4433 4437
4434 4438
4435 #undef __ 4439 #undef __
4436 4440
4437 } } // namespace v8::internal 4441 } } // namespace v8::internal
4438 4442
4439 #endif // V8_TARGET_ARCH_MIPS 4443 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698