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

Side by Side Diff: src/global-handles.h

Issue 6810021: Fix win64 compile failure. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 8 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class ObjectGroup { 45 class ObjectGroup {
46 public: 46 public:
47 static ObjectGroup* New(Object*** handles, 47 static ObjectGroup* New(Object*** handles,
48 size_t length, 48 size_t length,
49 v8::RetainedObjectInfo* info) { 49 v8::RetainedObjectInfo* info) {
50 ASSERT(length > 0); 50 ASSERT(length > 0);
51 ObjectGroup* group = reinterpret_cast<ObjectGroup*>( 51 ObjectGroup* group = reinterpret_cast<ObjectGroup*>(
52 malloc(OFFSET_OF(ObjectGroup, objects_[length]))); 52 malloc(OFFSET_OF(ObjectGroup, objects_[length])));
53 group->length_ = length; 53 group->length_ = length;
54 group->info_ = info; 54 group->info_ = info;
55 CopyWords(group->objects_, handles, length); 55 CopyWords(group->objects_, handles, static_cast<int>(length));
56 return group; 56 return group;
57 } 57 }
58 58
59 void Dispose() { 59 void Dispose() {
60 free(this); 60 free(this);
61 } 61 }
62 62
63 size_t length_; 63 size_t length_;
64 v8::RetainedObjectInfo* info_; 64 v8::RetainedObjectInfo* info_;
65 Object** objects_[1]; // Variable sized array. 65 Object** objects_[1]; // Variable sized array.
(...skipping 12 matching lines...) Expand all
78 class ImplicitRefGroup { 78 class ImplicitRefGroup {
79 public: 79 public:
80 static ImplicitRefGroup* New(HeapObject** parent, 80 static ImplicitRefGroup* New(HeapObject** parent,
81 Object*** children, 81 Object*** children,
82 size_t length) { 82 size_t length) {
83 ASSERT(length > 0); 83 ASSERT(length > 0);
84 ImplicitRefGroup* group = reinterpret_cast<ImplicitRefGroup*>( 84 ImplicitRefGroup* group = reinterpret_cast<ImplicitRefGroup*>(
85 malloc(OFFSET_OF(ImplicitRefGroup, children_[length]))); 85 malloc(OFFSET_OF(ImplicitRefGroup, children_[length])));
86 group->parent_ = parent; 86 group->parent_ = parent;
87 group->length_ = length; 87 group->length_ = length;
88 CopyWords(group->children_, children, length); 88 CopyWords(group->children_, children, static_cast<int>(length));
89 return group; 89 return group;
90 } 90 }
91 91
92 void Dispose() { 92 void Dispose() {
93 free(this); 93 free(this);
94 } 94 }
95 95
96 HeapObject** parent_; 96 HeapObject** parent_;
97 size_t length_; 97 size_t length_;
98 Object** children_[1]; // Variable sized array. 98 Object** children_[1]; // Variable sized array.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 friend class Isolate; 260 friend class Isolate;
261 261
262 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); 262 DISALLOW_COPY_AND_ASSIGN(GlobalHandles);
263 }; 263 };
264 264
265 265
266 } } // namespace v8::internal 266 } } // namespace v8::internal
267 267
268 #endif // V8_GLOBAL_HANDLES_H_ 268 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698