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

Side by Side Diff: src/ic/handler-compiler.cc

Issue 955433002: Prototype objects never share their map, and hence cannot be in deprecated state. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | src/objects.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/cpu-profiler.h" 7 #include "src/cpu-profiler.h"
8 #include "src/ic/call-optimization.h" 8 #include "src/ic/call-optimization.h"
9 #include "src/ic/handler-compiler.h" 9 #include "src/ic/handler-compiler.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 Map::UpdateCodeCache(stub_holder_map, cache_name, handler); 67 Map::UpdateCodeCache(stub_holder_map, cache_name, handler);
68 return handler; 68 return handler;
69 } 69 }
70 70
71 71
72 Handle<Code> PropertyHandlerCompiler::GetCode(Code::Kind kind, 72 Handle<Code> PropertyHandlerCompiler::GetCode(Code::Kind kind,
73 Code::StubType type, 73 Code::StubType type,
74 Handle<Name> name) { 74 Handle<Name> name) {
75 Code::Flags flags = Code::ComputeHandlerFlags(kind, type, cache_holder()); 75 Code::Flags flags = Code::ComputeHandlerFlags(kind, type, cache_holder());
76 Handle<Code> code = GetCodeWithFlags(flags, name); 76 Handle<Code> code = GetCodeWithFlags(flags, name);
77 PROFILE(isolate(), CodeCreateEvent(Logger::STUB_TAG, *code, *name)); 77 PROFILE(isolate(), CodeCreateEvent(Logger::HANDLER_TAG, *code, *name));
78 #ifdef DEBUG 78 #ifdef DEBUG
79 code->VerifyEmbeddedObjects(); 79 code->VerifyEmbeddedObjects();
80 #endif 80 #endif
81 return code; 81 return code;
82 } 82 }
83 83
84 84
85 #define __ ACCESS_MASM(masm()) 85 #define __ ACCESS_MASM(masm())
86 86
87 87
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 DCHECK(elements_kind == DICTIONARY_ELEMENTS); 513 DCHECK(elements_kind == DICTIONARY_ELEMENTS);
514 cached_stub = LoadDictionaryElementStub(isolate()).GetCode(); 514 cached_stub = LoadDictionaryElementStub(isolate()).GetCode();
515 } 515 }
516 } 516 }
517 517
518 handlers->Add(cached_stub); 518 handlers->Add(cached_stub);
519 } 519 }
520 } 520 }
521 } 521 }
522 } // namespace v8::internal 522 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698