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

Side by Side Diff: src/heap/heap.cc

Issue 1414183006: [turbofan] Avoid unnecessary write barriers and improve code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo. Created 5 years, 1 month 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
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/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 4362 matching lines...) Expand 10 before | Expand all | Expand 10 after
4373 case LO_SPACE: 4373 case LO_SPACE:
4374 return true; 4374 return true;
4375 default: 4375 default:
4376 return false; 4376 return false;
4377 } 4377 }
4378 } 4378 }
4379 4379
4380 4380
4381 bool Heap::RootIsImmortalImmovable(int root_index) { 4381 bool Heap::RootIsImmortalImmovable(int root_index) {
4382 switch (root_index) { 4382 switch (root_index) {
4383 #define CASE(name) \ 4383 #define IMMORTAL_IMMOVABLE_ROOT(name) case Heap::k##name##RootIndex:
4384 case Heap::k##name##RootIndex: \ 4384 IMMORTAL_IMMOVABLE_ROOT_LIST(IMMORTAL_IMMOVABLE_ROOT)
4385 #undef IMMORTAL_IMMOVABLE_ROOT
4386 #define INTERNALIZED_STRING(name, value) case Heap::k##name##RootIndex:
4387 INTERNALIZED_STRING_LIST(INTERNALIZED_STRING)
4388 #undef INTERNALIZED_STRING
4389 #define STRING_TYPE(NAME, size, name, Name) case Heap::k##Name##MapRootIndex:
4390 STRING_TYPE_LIST(STRING_TYPE)
4391 #undef STRING_TYPE
4385 return true; 4392 return true;
4386 IMMORTAL_IMMOVABLE_ROOT_LIST(CASE);
4387 #undef CASE
4388 default: 4393 default:
4389 return false; 4394 return false;
4390 } 4395 }
4391 } 4396 }
4392 4397
4393 4398
4394 #ifdef VERIFY_HEAP 4399 #ifdef VERIFY_HEAP
4395 void Heap::Verify() { 4400 void Heap::Verify() {
4396 CHECK(HasBeenSetUp()); 4401 CHECK(HasBeenSetUp());
4397 HandleScope scope(isolate()); 4402 HandleScope scope(isolate());
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
6188 } 6193 }
6189 6194
6190 6195
6191 // static 6196 // static
6192 int Heap::GetStaticVisitorIdForMap(Map* map) { 6197 int Heap::GetStaticVisitorIdForMap(Map* map) {
6193 return StaticVisitorBase::GetVisitorId(map); 6198 return StaticVisitorBase::GetVisitorId(map);
6194 } 6199 }
6195 6200
6196 } // namespace internal 6201 } // namespace internal
6197 } // namespace v8 6202 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698