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

Side by Side Diff: src/codegen.cc

Issue 2493001: - Continue removing [static] qualifier from StubCache. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/handles.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 int argc, 247 int argc,
248 InLoopFlag in_loop) { 248 InLoopFlag in_loop) {
249 if (in_loop == IN_LOOP) { 249 if (in_loop == IN_LOOP) {
250 // Force the creation of the corresponding stub outside loops, 250 // Force the creation of the corresponding stub outside loops,
251 // because it may be used when clearing the ICs later - it is 251 // because it may be used when clearing the ICs later - it is
252 // possible for a series of IC transitions to lose the in-loop 252 // possible for a series of IC transitions to lose the in-loop
253 // information, and the IC clearing code can't generate a stub 253 // information, and the IC clearing code can't generate a stub
254 // that it needs so we need to ensure it is generated already. 254 // that it needs so we need to ensure it is generated already.
255 ComputeCallInitialize(argc, NOT_IN_LOOP); 255 ComputeCallInitialize(argc, NOT_IN_LOOP);
256 } 256 }
257 CALL_HEAP_FUNCTION(StubCache::ComputeCallInitialize(argc, in_loop), Code); 257 CALL_HEAP_FUNCTION(
258 Isolate::Current()->stub_cache()->ComputeCallInitialize(argc, in_loop),
259 Code);
258 } 260 }
259 261
260 262
261 void CodeGenerator::ProcessDeclarations(ZoneList<Declaration*>* declarations) { 263 void CodeGenerator::ProcessDeclarations(ZoneList<Declaration*>* declarations) {
262 int length = declarations->length(); 264 int length = declarations->length();
263 int globals = 0; 265 int globals = 0;
264 for (int i = 0; i < length; i++) { 266 for (int i = 0; i < length; i++) {
265 Declaration* node = declarations->at(i); 267 Declaration* node = declarations->at(i);
266 Variable* var = node->proxy()->var(); 268 Variable* var = node->proxy()->var();
267 Slot* slot = var->slot(); 269 Slot* slot = var->slot();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 } 478 }
477 } 479 }
478 480
479 481
480 void ApiGetterEntryStub::SetCustomCache(Code* value) { 482 void ApiGetterEntryStub::SetCustomCache(Code* value) {
481 info()->set_load_stub_cache(value); 483 info()->set_load_stub_cache(value);
482 } 484 }
483 485
484 486
485 } } // namespace v8::internal 487 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698