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/type-info.cc

Issue 307583002: Repairs to FLAG_pretenure_call_new. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch One. Created 6 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/objects.cc ('k') | test/cctest/test-heap.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 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 "v8.h" 5 #include "v8.h"
6 6
7 #include "ast.h" 7 #include "ast.h"
8 #include "code-stubs.h" 8 #include "code-stubs.h"
9 #include "compiler.h" 9 #include "compiler.h"
10 #include "ic.h" 10 #include "ic.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 return KeyedStoreIC::GetKeyedAccessStoreMode(code->extra_ic_state()); 126 return KeyedStoreIC::GetKeyedAccessStoreMode(code->extra_ic_state());
127 } 127 }
128 } 128 }
129 return STANDARD_STORE; 129 return STANDARD_STORE;
130 } 130 }
131 131
132 132
133 Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(int slot) { 133 Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(int slot) {
134 Handle<Object> info = GetInfo(slot); 134 Handle<Object> info = GetInfo(slot);
135 if (info->IsAllocationSite()) { 135 if (info->IsAllocationSite()) {
136 ASSERT(!FLAG_pretenuring_call_new);
137 return Handle<JSFunction>(isolate()->native_context()->array_function()); 136 return Handle<JSFunction>(isolate()->native_context()->array_function());
138 } else {
139 return Handle<JSFunction>::cast(info);
140 } 137 }
141 138
142 ASSERT(info->IsAllocationSite()); 139 return Handle<JSFunction>::cast(info);
143 return Handle<JSFunction>(isolate()->native_context()->array_function());
144 } 140 }
145 141
146 142
147 Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(int slot) { 143 Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(int slot) {
148 Handle<Object> info = GetInfo(slot); 144 Handle<Object> info = GetInfo(slot);
149 if (FLAG_pretenuring_call_new || info->IsJSFunction()) { 145 if (FLAG_pretenuring_call_new || info->IsJSFunction()) {
150 return Handle<JSFunction>::cast(info); 146 return Handle<JSFunction>::cast(info);
151 } 147 }
152 148
153 ASSERT(info->IsAllocationSite()); 149 ASSERT(info->IsAllocationSite());
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 UnseededNumberDictionary::kNotFound); 476 UnseededNumberDictionary::kNotFound);
481 // Dictionary has been allocated with sufficient size for all elements. 477 // Dictionary has been allocated with sufficient size for all elements.
482 DisallowHeapAllocation no_need_to_resize_dictionary; 478 DisallowHeapAllocation no_need_to_resize_dictionary;
483 HandleScope scope(isolate()); 479 HandleScope scope(isolate());
484 USE(UnseededNumberDictionary::AtNumberPut( 480 USE(UnseededNumberDictionary::AtNumberPut(
485 dictionary_, IdToKey(ast_id), handle(target, isolate()))); 481 dictionary_, IdToKey(ast_id), handle(target, isolate())));
486 } 482 }
487 483
488 484
489 } } // namespace v8::internal 485 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698