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

Side by Side Diff: src/bootstrapper.cc

Issue 504183002: Remove dead code from LookupResult (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Install the LoadFastElementStub descriptor and addressed comments Created 6 years, 3 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 | « BUILD.gn ('k') | src/code-stubs.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/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/extensions/externalize-string-extension.h" 9 #include "src/extensions/externalize-string-extension.h"
10 #include "src/extensions/free-buffer-extension.h" 10 #include "src/extensions/free-buffer-extension.h"
(...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 if (it.IsFound() && it.HasProperty()) continue; 2490 if (it.IsFound() && it.HasProperty()) continue;
2491 HandleScope inner(isolate()); 2491 HandleScope inner(isolate());
2492 DCHECK(!to->HasFastProperties()); 2492 DCHECK(!to->HasFastProperties());
2493 // Add to dictionary. 2493 // Add to dictionary.
2494 Handle<Object> callbacks(descs->GetCallbacksObject(i), isolate()); 2494 Handle<Object> callbacks(descs->GetCallbacksObject(i), isolate());
2495 PropertyDetails d = PropertyDetails( 2495 PropertyDetails d = PropertyDetails(
2496 details.attributes(), CALLBACKS, i + 1); 2496 details.attributes(), CALLBACKS, i + 1);
2497 JSObject::SetNormalizedProperty(to, key, callbacks, d); 2497 JSObject::SetNormalizedProperty(to, key, callbacks, d);
2498 break; 2498 break;
2499 } 2499 }
2500 // Do not occur since the from object has fast properties.
2500 case NORMAL: 2501 case NORMAL:
2501 // Do not occur since the from object has fast properties.
2502 case HANDLER:
2503 case INTERCEPTOR:
2504 // No element in instance descriptors have proxy or interceptor type.
2505 UNREACHABLE(); 2502 UNREACHABLE();
2506 break; 2503 break;
2507 } 2504 }
2508 } 2505 }
2509 } else { 2506 } else {
2510 Handle<NameDictionary> properties = 2507 Handle<NameDictionary> properties =
2511 Handle<NameDictionary>(from->property_dictionary()); 2508 Handle<NameDictionary>(from->property_dictionary());
2512 int capacity = properties->Capacity(); 2509 int capacity = properties->Capacity();
2513 for (int i = 0; i < capacity; i++) { 2510 for (int i = 0; i < capacity; i++) {
2514 Object* raw_key(properties->KeyAt(i)); 2511 Object* raw_key(properties->KeyAt(i));
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 return from + sizeof(NestingCounterType); 2724 return from + sizeof(NestingCounterType);
2728 } 2725 }
2729 2726
2730 2727
2731 // Called when the top-level V8 mutex is destroyed. 2728 // Called when the top-level V8 mutex is destroyed.
2732 void Bootstrapper::FreeThreadResources() { 2729 void Bootstrapper::FreeThreadResources() {
2733 DCHECK(!IsActive()); 2730 DCHECK(!IsActive());
2734 } 2731 }
2735 2732
2736 } } // namespace v8::internal 2733 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698