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

Side by Side Diff: src/feedback-vector.cc

Issue 2680313002: Count closures using the feedback vector cell map, specialize if count==1. (Closed)
Patch Set: Only specialize if compiling from bytecode Created 3 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 | « src/factory.cc ('k') | src/flag-definitions.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/feedback-vector.h" 5 #include "src/feedback-vector.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/feedback-vector-inl.h" 7 #include "src/feedback-vector-inl.h"
8 #include "src/ic/ic-inl.h" 8 #include "src/ic/ic-inl.h"
9 #include "src/ic/ic-state.h" 9 #include "src/ic/ic-state.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof: 190 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof:
191 array->set(index, isolate->heap()->empty_weak_cell(), 191 array->set(index, isolate->heap()->empty_weak_cell(),
192 SKIP_WRITE_BARRIER); 192 SKIP_WRITE_BARRIER);
193 break; 193 break;
194 case FeedbackSlotKind::kCompareOp: 194 case FeedbackSlotKind::kCompareOp:
195 case FeedbackSlotKind::kBinaryOp: 195 case FeedbackSlotKind::kBinaryOp:
196 case FeedbackSlotKind::kToBoolean: 196 case FeedbackSlotKind::kToBoolean:
197 array->set(index, Smi::kZero, SKIP_WRITE_BARRIER); 197 array->set(index, Smi::kZero, SKIP_WRITE_BARRIER);
198 break; 198 break;
199 case FeedbackSlotKind::kCreateClosure: { 199 case FeedbackSlotKind::kCreateClosure: {
200 Handle<Cell> cell = factory->NewCell(undefined_value); 200 Handle<Cell> cell = factory->NewNoClosuresCell(undefined_value);
201 array->set(index, *cell); 201 array->set(index, *cell);
202 break; 202 break;
203 } 203 }
204 case FeedbackSlotKind::kLiteral: 204 case FeedbackSlotKind::kLiteral:
205 array->set(index, *undefined_value, SKIP_WRITE_BARRIER); 205 array->set(index, *undefined_value, SKIP_WRITE_BARRIER);
206 break; 206 break;
207 case FeedbackSlotKind::kCall: 207 case FeedbackSlotKind::kCall:
208 array->set(index, *uninitialized_sentinel, SKIP_WRITE_BARRIER); 208 array->set(index, *uninitialized_sentinel, SKIP_WRITE_BARRIER);
209 extra_value = Smi::kZero; 209 extra_value = Smi::kZero;
210 break; 210 break;
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 void StoreDataPropertyInLiteralICNexus::ConfigureMonomorphic( 996 void StoreDataPropertyInLiteralICNexus::ConfigureMonomorphic(
997 Handle<Name> name, Handle<Map> receiver_map) { 997 Handle<Name> name, Handle<Map> receiver_map) {
998 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); 998 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map);
999 999
1000 SetFeedback(*cell); 1000 SetFeedback(*cell);
1001 SetFeedbackExtra(*name); 1001 SetFeedbackExtra(*name);
1002 } 1002 }
1003 1003
1004 } // namespace internal 1004 } // namespace internal
1005 } // namespace v8 1005 } // namespace v8
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698