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

Side by Side Diff: src/objects.cc

Issue 349953002: Version 3.26.31.7 (merged r21869, r21873) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.26
Patch Set: Created 6 years, 5 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 | « no previous file | src/spaces.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 "accessors.h" 7 #include "accessors.h"
8 #include "allocation-site-scopes.h" 8 #include "allocation-site-scopes.h"
9 #include "api.h" 9 #include "api.h"
10 #include "arguments.h" 10 #include "arguments.h"
(...skipping 12349 matching lines...) Expand 10 before | Expand all | Expand 10 after
12360 bool marked = MarkCodeForDeoptimization(isolate, group); 12360 bool marked = MarkCodeForDeoptimization(isolate, group);
12361 12361
12362 if (marked) Deoptimizer::DeoptimizeMarkedCode(isolate); 12362 if (marked) Deoptimizer::DeoptimizeMarkedCode(isolate);
12363 } 12363 }
12364 12364
12365 12365
12366 void DependentCode::AddToDependentICList(Handle<Code> stub) { 12366 void DependentCode::AddToDependentICList(Handle<Code> stub) {
12367 DisallowHeapAllocation no_heap_allocation; 12367 DisallowHeapAllocation no_heap_allocation;
12368 GroupStartIndexes starts(this); 12368 GroupStartIndexes starts(this);
12369 int i = starts.at(kWeakICGroup); 12369 int i = starts.at(kWeakICGroup);
12370 stub->set_next_code_link(object_at(i)); 12370 Object* head = object_at(i);
12371 set_object_at(i, *stub); 12371 // Try to insert the stub after the head of the list to minimize number of
12372 // writes to the DependentCode array, since a write to the array can make it
12373 // strong if it was alread marked by incremental marker.
12374 if (head->IsCode()) {
12375 stub->set_next_code_link(Code::cast(head)->next_code_link());
12376 Code::cast(head)->set_next_code_link(*stub);
12377 } else {
12378 stub->set_next_code_link(head);
12379 set_object_at(i, *stub);
12380 }
12372 } 12381 }
12373 12382
12374 12383
12375 Handle<Map> Map::TransitionToPrototype(Handle<Map> map, 12384 Handle<Map> Map::TransitionToPrototype(Handle<Map> map,
12376 Handle<Object> prototype) { 12385 Handle<Object> prototype) {
12377 Handle<Map> new_map = GetPrototypeTransition(map, prototype); 12386 Handle<Map> new_map = GetPrototypeTransition(map, prototype);
12378 if (new_map.is_null()) { 12387 if (new_map.is_null()) {
12379 new_map = Copy(map); 12388 new_map = Copy(map);
12380 PutPrototypeTransition(map, prototype, new_map); 12389 PutPrototypeTransition(map, prototype, new_map);
12381 new_map->set_prototype(*prototype); 12390 new_map->set_prototype(*prototype);
(...skipping 4899 matching lines...) Expand 10 before | Expand all | Expand 10 after
17281 #define ERROR_MESSAGES_TEXTS(C, T) T, 17290 #define ERROR_MESSAGES_TEXTS(C, T) T,
17282 static const char* error_messages_[] = { 17291 static const char* error_messages_[] = {
17283 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 17292 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
17284 }; 17293 };
17285 #undef ERROR_MESSAGES_TEXTS 17294 #undef ERROR_MESSAGES_TEXTS
17286 return error_messages_[reason]; 17295 return error_messages_[reason];
17287 } 17296 }
17288 17297
17289 17298
17290 } } // namespace v8::internal 17299 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698