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

Side by Side Diff: src/property.cc

Issue 300283002: Introduce FieldIndex to unify and abstract property/field offset (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix mutable boxed double runtime function Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/property.h ('k') | src/runtime.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/property.h" 5 #include "src/property.h"
6 6
7 #include "src/handles-inl.h" 7 #include "src/handles-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 29 matching lines...) Expand all
40 PrintF(out, " -entry = %d", GetDictionaryEntry()); 40 PrintF(out, " -entry = %d", GetDictionaryEntry());
41 break; 41 break;
42 case CONSTANT: 42 case CONSTANT:
43 PrintF(out, " -type = constant\n"); 43 PrintF(out, " -type = constant\n");
44 PrintF(out, " -value:\n"); 44 PrintF(out, " -value:\n");
45 GetConstant()->Print(out); 45 GetConstant()->Print(out);
46 PrintF(out, "\n"); 46 PrintF(out, "\n");
47 break; 47 break;
48 case FIELD: 48 case FIELD:
49 PrintF(out, " -type = field\n"); 49 PrintF(out, " -type = field\n");
50 PrintF(out, " -index = %d\n", GetFieldIndex().field_index()); 50 PrintF(out, " -index = %d\n",
51 GetFieldIndex().property_index());
51 PrintF(out, " -field type:\n"); 52 PrintF(out, " -field type:\n");
52 GetFieldType()->TypePrint(out); 53 GetFieldType()->TypePrint(out);
53 break; 54 break;
54 case CALLBACKS: 55 case CALLBACKS:
55 PrintF(out, " -type = call backs\n"); 56 PrintF(out, " -type = call backs\n");
56 PrintF(out, " -callback object:\n"); 57 PrintF(out, " -callback object:\n");
57 GetCallbackObject()->Print(out); 58 GetCallbackObject()->Print(out);
58 break; 59 break;
59 case HANDLER: 60 case HANDLER:
60 PrintF(out, " -type = lookup proxy\n"); 61 PrintF(out, " -type = lookup proxy\n");
(...skipping 10 matching lines...) Expand all
71 72
72 void Descriptor::Print(FILE* out) { 73 void Descriptor::Print(FILE* out) {
73 PrintF(out, "Descriptor "); 74 PrintF(out, "Descriptor ");
74 GetKey()->ShortPrint(out); 75 GetKey()->ShortPrint(out);
75 PrintF(out, " @ "); 76 PrintF(out, " @ ");
76 GetValue()->ShortPrint(out); 77 GetValue()->ShortPrint(out);
77 } 78 }
78 #endif 79 #endif
79 80
80 } } // namespace v8::internal 81 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/property.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698