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

Side by Side Diff: src/bootstrapper.cc

Issue 1181053003: Version 4.3.61.28 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.3
Patch Set: Created 5 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
« no previous file with comments | « src/api.cc ('k') | src/snapshot/serialize.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/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/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after
2759 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); 2759 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR);
2760 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); 2760 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state());
2761 if (it.IsFound()) continue; 2761 if (it.IsFound()) continue;
2762 // Set the property. 2762 // Set the property.
2763 Handle<Object> value = Handle<Object>(properties->ValueAt(i), 2763 Handle<Object> value = Handle<Object>(properties->ValueAt(i),
2764 isolate()); 2764 isolate());
2765 DCHECK(!value->IsCell()); 2765 DCHECK(!value->IsCell());
2766 if (value->IsPropertyCell()) { 2766 if (value->IsPropertyCell()) {
2767 value = handle(PropertyCell::cast(*value)->value(), isolate()); 2767 value = handle(PropertyCell::cast(*value)->value(), isolate());
2768 } 2768 }
2769 if (value->IsTheHole()) continue;
2769 PropertyDetails details = properties->DetailsAt(i); 2770 PropertyDetails details = properties->DetailsAt(i);
2770 DCHECK_EQ(kData, details.kind()); 2771 DCHECK_EQ(kData, details.kind());
2771 JSObject::AddProperty(to, key, value, details.attributes()); 2772 JSObject::AddProperty(to, key, value, details.attributes());
2772 } 2773 }
2773 } 2774 }
2774 } 2775 }
2775 } 2776 }
2776 2777
2777 2778
2778 void Genesis::TransferIndexedProperties(Handle<JSObject> from, 2779 void Genesis::TransferIndexedProperties(Handle<JSObject> from,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 return from + sizeof(NestingCounterType); 2956 return from + sizeof(NestingCounterType);
2956 } 2957 }
2957 2958
2958 2959
2959 // Called when the top-level V8 mutex is destroyed. 2960 // Called when the top-level V8 mutex is destroyed.
2960 void Bootstrapper::FreeThreadResources() { 2961 void Bootstrapper::FreeThreadResources() {
2961 DCHECK(!IsActive()); 2962 DCHECK(!IsActive());
2962 } 2963 }
2963 2964
2964 } } // namespace v8::internal 2965 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/snapshot/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698