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

Side by Side Diff: src/string-stream.cc

Issue 856503002: Massive renaming of PropertyType values and other implied stuff. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Spurious file addition fixed Created 5 years, 11 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/runtime/runtime-scopes.cc ('k') | src/transitions.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/string-stream.h" 5 #include "src/string-stream.h"
6 6
7 #include "src/handles-inl.h" 7 #include "src/handles-inl.h"
8 #include "src/prototype.h" 8 #include "src/prototype.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 if (!js_object->GetHeap()->Contains(map) || 328 if (!js_object->GetHeap()->Contains(map) ||
329 !map->IsHeapObject() || 329 !map->IsHeapObject() ||
330 !map->IsMap()) { 330 !map->IsMap()) {
331 Add("<Invalid map>\n"); 331 Add("<Invalid map>\n");
332 return; 332 return;
333 } 333 }
334 int real_size = map->NumberOfOwnDescriptors(); 334 int real_size = map->NumberOfOwnDescriptors();
335 DescriptorArray* descs = map->instance_descriptors(); 335 DescriptorArray* descs = map->instance_descriptors();
336 for (int i = 0; i < real_size; i++) { 336 for (int i = 0; i < real_size; i++) {
337 PropertyDetails details = descs->GetDetails(i); 337 PropertyDetails details = descs->GetDetails(i);
338 if (details.type() == FIELD) { 338 if (details.type() == DATA) {
339 Object* key = descs->GetKey(i); 339 Object* key = descs->GetKey(i);
340 if (key->IsString() || key->IsNumber()) { 340 if (key->IsString() || key->IsNumber()) {
341 int len = 3; 341 int len = 3;
342 if (key->IsString()) { 342 if (key->IsString()) {
343 len = String::cast(key)->length(); 343 len = String::cast(key)->length();
344 } 344 }
345 for (; len < 18; len++) 345 for (; len < 18; len++)
346 Put(' '); 346 Put(' ');
347 if (key->IsString()) { 347 if (key->IsString()) {
348 Put(String::cast(key)); 348 Put(String::cast(key));
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 } 556 }
557 MemCopy(new_space, space_, *bytes); 557 MemCopy(new_space, space_, *bytes);
558 *bytes = new_bytes; 558 *bytes = new_bytes;
559 DeleteArray(space_); 559 DeleteArray(space_);
560 space_ = new_space; 560 space_ = new_space;
561 return new_space; 561 return new_space;
562 } 562 }
563 563
564 564
565 } } // namespace v8::internal 565 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-scopes.cc ('k') | src/transitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698