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/bootstrapper.cc

Issue 2598543003: [runtime][ic] Constant field tracking support. (Closed)
Patch Set: Addressing comments 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 | « no previous file | src/compiler/access-info.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 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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 4483 matching lines...) Expand 10 before | Expand all | Expand 10 after
4494 Handle<Object> value(from->RawFastPropertyAt(index), isolate()); 4494 Handle<Object> value(from->RawFastPropertyAt(index), isolate());
4495 JSObject::AddProperty(to, key, value, details.attributes()); 4495 JSObject::AddProperty(to, key, value, details.attributes());
4496 } else { 4496 } else {
4497 DCHECK_EQ(kAccessor, details.kind()); 4497 DCHECK_EQ(kAccessor, details.kind());
4498 UNREACHABLE(); 4498 UNREACHABLE();
4499 } 4499 }
4500 4500
4501 } else { 4501 } else {
4502 DCHECK_EQ(kDescriptor, details.location()); 4502 DCHECK_EQ(kDescriptor, details.location());
4503 if (details.kind() == kData) { 4503 if (details.kind() == kData) {
4504 DCHECK(!FLAG_track_constant_fields);
4504 HandleScope inner(isolate()); 4505 HandleScope inner(isolate());
4505 Handle<Name> key = Handle<Name>(descs->GetKey(i)); 4506 Handle<Name> key = Handle<Name>(descs->GetKey(i));
4506 Handle<Object> value(descs->GetValue(i), isolate()); 4507 Handle<Object> value(descs->GetValue(i), isolate());
4507 JSObject::AddProperty(to, key, value, details.attributes()); 4508 JSObject::AddProperty(to, key, value, details.attributes());
4508 4509
4509 } else { 4510 } else {
4510 DCHECK_EQ(kAccessor, details.kind()); 4511 DCHECK_EQ(kAccessor, details.kind());
4511 Handle<Name> key(descs->GetKey(i)); 4512 Handle<Name> key(descs->GetKey(i));
4512 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); 4513 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR);
4513 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); 4514 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state());
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
4875 } 4876 }
4876 4877
4877 4878
4878 // Called when the top-level V8 mutex is destroyed. 4879 // Called when the top-level V8 mutex is destroyed.
4879 void Bootstrapper::FreeThreadResources() { 4880 void Bootstrapper::FreeThreadResources() {
4880 DCHECK(!IsActive()); 4881 DCHECK(!IsActive());
4881 } 4882 }
4882 4883
4883 } // namespace internal 4884 } // namespace internal
4884 } // namespace v8 4885 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/access-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698