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

Side by Side Diff: src/api.cc

Issue 2490783004: [serializer] small fixes for blink snapshot. (Closed)
Patch Set: rebase and fix Created 4 years, 1 month 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/address-map.cc ('k') | src/external-reference-table.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 } 1233 }
1234 } 1234 }
1235 return Local<FunctionTemplate>(); 1235 return Local<FunctionTemplate>();
1236 } 1236 }
1237 1237
1238 Local<FunctionTemplate> FunctionTemplate::NewWithFastHandler( 1238 Local<FunctionTemplate> FunctionTemplate::NewWithFastHandler(
1239 Isolate* isolate, FunctionCallback callback, 1239 Isolate* isolate, FunctionCallback callback,
1240 experimental::FastAccessorBuilder* fast_handler, v8::Local<Value> data, 1240 experimental::FastAccessorBuilder* fast_handler, v8::Local<Value> data,
1241 v8::Local<Signature> signature, int length) { 1241 v8::Local<Signature> signature, int length) {
1242 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); 1242 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1243 DCHECK(!i_isolate->serializer_enabled());
1244 LOG_API(i_isolate, FunctionTemplate, NewWithFastHandler); 1243 LOG_API(i_isolate, FunctionTemplate, NewWithFastHandler);
1245 ENTER_V8(i_isolate); 1244 ENTER_V8(i_isolate);
1246 return FunctionTemplateNew(i_isolate, callback, fast_handler, data, signature, 1245 return FunctionTemplateNew(i_isolate, callback, fast_handler, data, signature,
1247 length, false); 1246 length, false);
1248 } 1247 }
1249 1248
1250 Local<FunctionTemplate> FunctionTemplate::NewWithCache( 1249 Local<FunctionTemplate> FunctionTemplate::NewWithCache(
1251 Isolate* isolate, FunctionCallback callback, Local<Private> cache_property, 1250 Isolate* isolate, FunctionCallback callback, Local<Private> cache_property,
1252 Local<Value> data, Local<Signature> signature, int length) { 1251 Local<Value> data, Local<Signature> signature, int length) {
1253 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); 1252 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1254 DCHECK(!i_isolate->serializer_enabled());
1255 LOG_API(i_isolate, FunctionTemplate, NewWithFastHandler); 1253 LOG_API(i_isolate, FunctionTemplate, NewWithFastHandler);
1256 ENTER_V8(i_isolate); 1254 ENTER_V8(i_isolate);
1257 return FunctionTemplateNew(i_isolate, callback, nullptr, data, signature, 1255 return FunctionTemplateNew(i_isolate, callback, nullptr, data, signature,
1258 length, false, cache_property); 1256 length, false, cache_property);
1259 } 1257 }
1260 1258
1261 Local<Signature> Signature::New(Isolate* isolate, 1259 Local<Signature> Signature::New(Isolate* isolate,
1262 Local<FunctionTemplate> receiver) { 1260 Local<FunctionTemplate> receiver) {
1263 return Utils::SignatureToLocal(Utils::OpenHandle(*receiver)); 1261 return Utils::SignatureToLocal(Utils::OpenHandle(*receiver));
1264 } 1262 }
(...skipping 8510 matching lines...) Expand 10 before | Expand all | Expand 10 after
9775 Address callback_address = 9773 Address callback_address =
9776 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9774 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9777 VMState<EXTERNAL> state(isolate); 9775 VMState<EXTERNAL> state(isolate);
9778 ExternalCallbackScope call_scope(isolate, callback_address); 9776 ExternalCallbackScope call_scope(isolate, callback_address);
9779 callback(info); 9777 callback(info);
9780 } 9778 }
9781 9779
9782 9780
9783 } // namespace internal 9781 } // namespace internal
9784 } // namespace v8 9782 } // namespace v8
OLDNEW
« no previous file with comments | « src/address-map.cc ('k') | src/external-reference-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698