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

Side by Side Diff: src/stub-cache.cc

Issue 450303003: Tag all prototypes as proto, except those set using __proto__ (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove is_shared from Map Created 6 years, 4 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/serialize.cc ('k') | src/v8natives.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 342
343 FillCache(isolate, code); 343 FillCache(isolate, code);
344 return code; 344 return code;
345 } 345 }
346 346
347 347
348 Handle<Code> PropertyICCompiler::ComputeCompareNil(Handle<Map> receiver_map, 348 Handle<Code> PropertyICCompiler::ComputeCompareNil(Handle<Map> receiver_map,
349 CompareNilICStub* stub) { 349 CompareNilICStub* stub) {
350 Isolate* isolate = receiver_map->GetIsolate(); 350 Isolate* isolate = receiver_map->GetIsolate();
351 Handle<String> name(isolate->heap()->empty_string()); 351 Handle<String> name(isolate->heap()->empty_string());
352 if (!receiver_map->is_shared()) { 352 if (!receiver_map->is_dictionary_map()) {
353 Handle<Code> cached_ic = 353 Handle<Code> cached_ic =
354 Find(name, receiver_map, Code::COMPARE_NIL_IC, stub->GetExtraICState()); 354 Find(name, receiver_map, Code::COMPARE_NIL_IC, stub->GetExtraICState());
355 if (!cached_ic.is_null()) return cached_ic; 355 if (!cached_ic.is_null()) return cached_ic;
356 } 356 }
357 357
358 Code::FindAndReplacePattern pattern; 358 Code::FindAndReplacePattern pattern;
359 pattern.Add(isolate->factory()->meta_map(), receiver_map); 359 pattern.Add(isolate->factory()->meta_map(), receiver_map);
360 Handle<Code> ic = stub->GetCodeCopy(pattern); 360 Handle<Code> ic = stub->GetCodeCopy(pattern);
361 361
362 if (!receiver_map->is_shared()) { 362 if (!receiver_map->is_dictionary_map()) {
363 Map::UpdateCodeCache(receiver_map, name, ic); 363 Map::UpdateCodeCache(receiver_map, name, ic);
364 } 364 }
365 365
366 return ic; 366 return ic;
367 } 367 }
368 368
369 369
370 // TODO(verwaest): Change this method so it takes in a TypeHandleList. 370 // TODO(verwaest): Change this method so it takes in a TypeHandleList.
371 Handle<Code> PropertyICCompiler::ComputeKeyedLoadPolymorphic( 371 Handle<Code> PropertyICCompiler::ComputeKeyedLoadPolymorphic(
372 MapHandleList* receiver_maps) { 372 MapHandleList* receiver_maps) {
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 Handle<FunctionTemplateInfo>( 1284 Handle<FunctionTemplateInfo>(
1285 FunctionTemplateInfo::cast(signature->receiver())); 1285 FunctionTemplateInfo::cast(signature->receiver()));
1286 } 1286 }
1287 } 1287 }
1288 1288
1289 is_simple_api_call_ = true; 1289 is_simple_api_call_ = true;
1290 } 1290 }
1291 1291
1292 1292
1293 } } // namespace v8::internal 1293 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698