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

Side by Side Diff: src/api.h

Issue 6446: Revert 428. Breaks 64-bit compilation. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | « SConstruct ('k') | src/bootstrapper.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 void NeanderObject::set(int offset, v8::internal::Object* value) { 106 void NeanderObject::set(int offset, v8::internal::Object* value) {
107 ASSERT(value_->HasFastElements()); 107 ASSERT(value_->HasFastElements());
108 v8::internal::FixedArray::cast(value_->elements())->set(offset, value); 108 v8::internal::FixedArray::cast(value_->elements())->set(offset, value);
109 } 109 }
110 110
111 111
112 template <typename T> static inline T ToCData(v8::internal::Object* obj) { 112 template <typename T> static inline T ToCData(v8::internal::Object* obj) {
113 STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address)); 113 STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address));
114 return reinterpret_cast<T>( 114 return reinterpret_cast<T>(
115 reinterpret_cast<intptr_t>(v8::internal::Proxy::cast(obj)->proxy())); 115 reinterpret_cast<int>(v8::internal::Proxy::cast(obj)->proxy()));
116 } 116 }
117 117
118 118
119 template <typename T> 119 template <typename T>
120 static inline v8::internal::Handle<v8::internal::Object> FromCData(T obj) { 120 static inline v8::internal::Handle<v8::internal::Object> FromCData(T obj) {
121 STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address)); 121 STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address));
122 return v8::internal::Factory::NewProxy( 122 return v8::internal::Factory::NewProxy(
123 reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(obj))); 123 reinterpret_cast<v8::internal::Address>(reinterpret_cast<int>(obj)));
124 } 124 }
125 125
126 126
127 v8::Arguments::Arguments(v8::Local<v8::Value> data, 127 v8::Arguments::Arguments(v8::Local<v8::Value> data,
128 v8::Local<v8::Object> holder, 128 v8::Local<v8::Object> holder,
129 v8::Local<v8::Function> callee, 129 v8::Local<v8::Function> callee,
130 bool is_construct_call, 130 bool is_construct_call,
131 void** values, int length) 131 void** values, int length)
132 : data_(data), holder_(holder), callee_(callee), 132 : data_(data), holder_(holder), callee_(callee),
133 is_construct_call_(is_construct_call), 133 is_construct_call_(is_construct_call),
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 #ifdef DEBUG 501 #ifdef DEBUG
502 ImplementationUtilities::ZapHandleRange( 502 ImplementationUtilities::ZapHandleRange(
503 reinterpret_cast<void**>(spare), 503 reinterpret_cast<void**>(spare),
504 reinterpret_cast<void**>(&spare[kHandleBlockSize])); 504 reinterpret_cast<void**>(&spare[kHandleBlockSize]));
505 #endif 505 #endif
506 } 506 }
507 507
508 } } // namespace v8::internal 508 } } // namespace v8::internal
509 509
510 #endif // V8_API_H_ 510 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698