Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 return v8::String::Empty(isolate); | 346 return v8::String::Empty(isolate); |
| 347 return V8PerIsolateData::from(isolate)->stringCache()->v8ExternalString(stri ng.impl(), isolate); | 347 return V8PerIsolateData::from(isolate)->stringCache()->v8ExternalString(stri ng.impl(), isolate); |
| 348 } | 348 } |
| 349 | 349 |
| 350 inline v8::Handle<v8::String> v8AtomicString(v8::Isolate* isolate, const char* s tr, int length = -1) | 350 inline v8::Handle<v8::String> v8AtomicString(v8::Isolate* isolate, const char* s tr, int length = -1) |
| 351 { | 351 { |
| 352 ASSERT(isolate); | 352 ASSERT(isolate); |
| 353 v8::Local<v8::String> value; | 353 v8::Local<v8::String> value; |
| 354 if (LIKELY(v8::String::NewFromUtf8(isolate, str, v8::NewStringType::kInterna lized, length).ToLocal(&value))) | 354 if (LIKELY(v8::String::NewFromUtf8(isolate, str, v8::NewStringType::kInterna lized, length).ToLocal(&value))) |
| 355 return value; | 355 return value; |
| 356 RELEASE_ASSERT_NOT_REACHED(); | |
|
haraken
2015/03/25 08:55:07
Would you add a comment on this?
bashi
2015/03/25 09:14:41
Done.
| |
| 356 return v8::String::Empty(isolate); | 357 return v8::String::Empty(isolate); |
| 357 } | 358 } |
| 358 | 359 |
| 359 inline v8::Handle<v8::Value> v8Undefined() | 360 inline v8::Handle<v8::Value> v8Undefined() |
| 360 { | 361 { |
| 361 return v8::Handle<v8::Value>(); | 362 return v8::Handle<v8::Value>(); |
| 362 } | 363 } |
| 363 | 364 |
| 364 // Conversion flags, used in toIntXX/toUIntXX. | 365 // Conversion flags, used in toIntXX/toUIntXX. |
| 365 enum IntegerConversionConfiguration { | 366 enum IntegerConversionConfiguration { |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 964 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol ate*, ExecutionContext*, v8::Handle<v8::Function>); | 965 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol ate*, ExecutionContext*, v8::Handle<v8::Function>); |
| 965 | 966 |
| 966 // Callback functions used by generated code. | 967 // Callback functions used by generated code. |
| 967 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>&); | 968 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>&); |
| 968 | 969 |
| 969 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*); | 970 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*); |
| 970 | 971 |
| 971 } // namespace blink | 972 } // namespace blink |
| 972 | 973 |
| 973 #endif // V8Binding_h | 974 #endif // V8Binding_h |
| OLD | NEW |