v8-platform.h | v8-platform.h | |||
---|---|---|---|---|
// Copyright 2013 the V8 project authors. All rights reserved. | // Copyright 2013 the V8 project authors. All rights reserved. | |||
// Redistribution and use in source and binary forms, with or without | // Use of this source code is governed by a BSD-style license that can be | |||
// modification, are permitted provided that the following conditions are | // found in the LICENSE file. | |||
// met: | ||||
// | ||||
// * Redistributions of source code must retain the above copyright | ||||
// notice, this list of conditions and the following disclaimer. | ||||
// * Redistributions in binary form must reproduce the above | ||||
// copyright notice, this list of conditions and the following | ||||
// disclaimer in the documentation and/or other materials provided | ||||
// with the distribution. | ||||
// * Neither the name of Google Inc. nor the names of its | ||||
// contributors may be used to endorse or promote products derived | ||||
// from this software without specific prior written permission. | ||||
// | ||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
#ifndef V8_V8_PLATFORM_H_ | #ifndef V8_V8_PLATFORM_H_ | |||
#define V8_V8_PLATFORM_H_ | #define V8_V8_PLATFORM_H_ | |||
#include "v8.h" | #include "v8.h" | |||
namespace v8 { | namespace v8 { | |||
/** | /** | |||
* A Task represents a unit of work. | * A Task represents a unit of work. | |||
End of changes. 1 change blocks. | ||||
25 lines changed or deleted | 2 lines changed or added | |||
v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
// Copyright 2010 the V8 project authors. All rights reserved. | // Copyright 2010 the V8 project authors. All rights reserved. | |||
// Redistribution and use in source and binary forms, with or without | // Use of this source code is governed by a BSD-style license that can be | |||
// modification, are permitted provided that the following conditions are | // found in the LICENSE file. | |||
// met: | ||||
// | ||||
// * Redistributions of source code must retain the above copyright | ||||
// notice, this list of conditions and the following disclaimer. | ||||
// * Redistributions in binary form must reproduce the above | ||||
// copyright notice, this list of conditions and the following | ||||
// disclaimer in the documentation and/or other materials provided | ||||
// with the distribution. | ||||
// * Neither the name of Google Inc. nor the names of its | ||||
// contributors may be used to endorse or promote products derived | ||||
// from this software without specific prior written permission. | ||||
// | ||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
#ifndef V8_V8_PROFILER_H_ | #ifndef V8_V8_PROFILER_H_ | |||
#define V8_V8_PROFILER_H_ | #define V8_V8_PROFILER_H_ | |||
#include "v8.h" | #include "v8.h" | |||
/** | /** | |||
* Profiler support for the V8 JavaScript engine. | * Profiler support for the V8 JavaScript engine. | |||
*/ | */ | |||
namespace v8 { | namespace v8 { | |||
End of changes. 1 change blocks. | ||||
25 lines changed or deleted | 2 lines changed or added | |||
v8-util.h | v8-util.h | |||
---|---|---|---|---|
// Copyright 2014 the V8 project authors. All rights reserved. | // Copyright 2014 the V8 project authors. All rights reserved. | |||
// Redistribution and use in source and binary forms, with or without | // Use of this source code is governed by a BSD-style license that can be | |||
// modification, are permitted provided that the following conditions are | // found in the LICENSE file. | |||
// met: | ||||
// | ||||
// * Redistributions of source code must retain the above copyright | ||||
// notice, this list of conditions and the following disclaimer. | ||||
// * Redistributions in binary form must reproduce the above | ||||
// copyright notice, this list of conditions and the following | ||||
// disclaimer in the documentation and/or other materials provided | ||||
// with the distribution. | ||||
// * Neither the name of Google Inc. nor the names of its | ||||
// contributors may be used to endorse or promote products derived | ||||
// from this software without specific prior written permission. | ||||
// | ||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
#ifndef V8_UTIL_H_ | #ifndef V8_UTIL_H_ | |||
#define V8_UTIL_H_ | #define V8_UTIL_H_ | |||
#include "v8.h" | #include "v8.h" | |||
#include <map> | #include <map> | |||
#include <vector> | #include <vector> | |||
/** | /** | |||
* Support for Persistent containers. | * Support for Persistent containers. | |||
End of changes. 1 change blocks. | ||||
25 lines changed or deleted | 2 lines changed or added | |||
v8.h | v8.h | |||
---|---|---|---|---|
// Copyright 2012 the V8 project authors. All rights reserved. | // Copyright 2012 the V8 project authors. All rights reserved. | |||
// Redistribution and use in source and binary forms, with or without | // Use of this source code is governed by a BSD-style license that can be | |||
// modification, are permitted provided that the following conditions are | // found in the LICENSE file. | |||
// met: | ||||
// | ||||
// * Redistributions of source code must retain the above copyright | ||||
// notice, this list of conditions and the following disclaimer. | ||||
// * Redistributions in binary form must reproduce the above | ||||
// copyright notice, this list of conditions and the following | ||||
// disclaimer in the documentation and/or other materials provided | ||||
// with the distribution. | ||||
// * Neither the name of Google Inc. nor the names of its | ||||
// contributors may be used to endorse or promote products derived | ||||
// from this software without specific prior written permission. | ||||
// | ||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
/** \mainpage V8 API Reference Guide | /** \mainpage V8 API Reference Guide | |||
* | * | |||
* V8 is Google's open source JavaScript engine. | * V8 is Google's open source JavaScript engine. | |||
* | * | |||
* This set of documents provides reference material generated from the | * This set of documents provides reference material generated from the | |||
* V8 header file, include/v8.h. | * V8 header file, include/v8.h. | |||
* | * | |||
* For other documentation see http://code.google.com/apis/v8/ | * For other documentation see http://code.google.com/apis/v8/ | |||
*/ | */ | |||
skipping to change at line 2482 | skipping to change at line 2459 | |||
/** | /** | |||
* The information passed to a property callback about the context | * The information passed to a property callback about the context | |||
* of the property access. | * of the property access. | |||
*/ | */ | |||
template<typename T> | template<typename T> | |||
class PropertyCallbackInfo { | class PropertyCallbackInfo { | |||
public: | public: | |||
V8_INLINE Isolate* GetIsolate() const; | V8_INLINE Isolate* GetIsolate() const; | |||
V8_INLINE Local<Value> Data() const; | V8_INLINE Local<Value> Data() const; | |||
V8_INLINE Local<Object> This() const; | V8_INLINE Local<Value> This() const; | |||
V8_INLINE Local<Object> Holder() const; | V8_INLINE Local<Object> Holder() const; | |||
V8_INLINE ReturnValue<T> GetReturnValue() const; | V8_INLINE ReturnValue<T> GetReturnValue() const; | |||
// This shouldn't be public, but the arm compiler needs it. | // This shouldn't be public, but the arm compiler needs it. | |||
static const int kArgsLength = 6; | static const int kArgsLength = 6; | |||
protected: | protected: | |||
friend class MacroAssembler; | friend class MacroAssembler; | |||
friend class internal::PropertyCallbackArguments; | friend class internal::PropertyCallbackArguments; | |||
friend class internal::CustomArguments<PropertyCallbackInfo>; | friend class internal::CustomArguments<PropertyCallbackInfo>; | |||
static const int kHolderIndex = 0; | static const int kHolderIndex = 0; | |||
skipping to change at line 6277 | skipping to change at line 6254 | |||
Isolate* PropertyCallbackInfo<T>::GetIsolate() const { | Isolate* PropertyCallbackInfo<T>::GetIsolate() const { | |||
return *reinterpret_cast<Isolate**>(&args_[kIsolateIndex]); | return *reinterpret_cast<Isolate**>(&args_[kIsolateIndex]); | |||
} | } | |||
template<typename T> | template<typename T> | |||
Local<Value> PropertyCallbackInfo<T>::Data() const { | Local<Value> PropertyCallbackInfo<T>::Data() const { | |||
return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex])); | return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex])); | |||
} | } | |||
template<typename T> | template<typename T> | |||
Local<Object> PropertyCallbackInfo<T>::This() const { | Local<Value> PropertyCallbackInfo<T>::This() const { | |||
return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex])); | return Local<Value>(reinterpret_cast<Value*>(&args_[kThisIndex])); | |||
} | } | |||
template<typename T> | template<typename T> | |||
Local<Object> PropertyCallbackInfo<T>::Holder() const { | Local<Object> PropertyCallbackInfo<T>::Holder() const { | |||
return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex])); | return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex])); | |||
} | } | |||
template<typename T> | template<typename T> | |||
ReturnValue<T> PropertyCallbackInfo<T>::GetReturnValue() const { | ReturnValue<T> PropertyCallbackInfo<T>::GetReturnValue() const { | |||
return ReturnValue<T>(&args_[kReturnValueIndex]); | return ReturnValue<T>(&args_[kReturnValueIndex]); | |||
End of changes. 3 change blocks. | ||||
28 lines changed or deleted | 5 lines changed or added | |||
v8config.h | v8config.h | |||
---|---|---|---|---|
// Copyright 2013 the V8 project authors. All rights reserved. | // Copyright 2013 the V8 project authors. All rights reserved. | |||
// Redistribution and use in source and binary forms, with or without | // Use of this source code is governed by a BSD-style license that can be | |||
// modification, are permitted provided that the following conditions are | // found in the LICENSE file. | |||
// met: | ||||
// | ||||
// * Redistributions of source code must retain the above copyright | ||||
// notice, this list of conditions and the following disclaimer. | ||||
// * Redistributions in binary form must reproduce the above | ||||
// copyright notice, this list of conditions and the following | ||||
// disclaimer in the documentation and/or other materials provided | ||||
// with the distribution. | ||||
// * Neither the name of Google Inc. nor the names of its | ||||
// contributors may be used to endorse or promote products derived | ||||
// from this software without specific prior written permission. | ||||
// | ||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
#ifndef V8CONFIG_H_ | #ifndef V8CONFIG_H_ | |||
#define V8CONFIG_H_ | #define V8CONFIG_H_ | |||
// Platform headers for feature detection below. | // Platform headers for feature detection below. | |||
#if defined(__ANDROID__) | #if defined(__ANDROID__) | |||
# include <sys/cdefs.h> | # include <sys/cdefs.h> | |||
#elif defined(__APPLE__) | #elif defined(__APPLE__) | |||
# include <TargetConditionals.h> | # include <TargetConditionals.h> | |||
#elif defined(__linux__) | #elif defined(__linux__) | |||
End of changes. 1 change blocks. | ||||
25 lines changed or deleted | 2 lines changed or added | |||
v8stdint.h | v8stdint.h | |||
---|---|---|---|---|
// Copyright 2012 the V8 project authors. All rights reserved. | // Copyright 2012 the V8 project authors. All rights reserved. | |||
// Redistribution and use in source and binary forms, with or without | // Use of this source code is governed by a BSD-style license that can be | |||
// modification, are permitted provided that the following conditions are | // found in the LICENSE file. | |||
// met: | ||||
// | ||||
// * Redistributions of source code must retain the above copyright | ||||
// notice, this list of conditions and the following disclaimer. | ||||
// * Redistributions in binary form must reproduce the above | ||||
// copyright notice, this list of conditions and the following | ||||
// disclaimer in the documentation and/or other materials provided | ||||
// with the distribution. | ||||
// * Neither the name of Google Inc. nor the names of its | ||||
// contributors may be used to endorse or promote products derived | ||||
// from this software without specific prior written permission. | ||||
// | ||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
// Load definitions of standard types. | // Load definitions of standard types. | |||
#ifndef V8STDINT_H_ | #ifndef V8STDINT_H_ | |||
#define V8STDINT_H_ | #define V8STDINT_H_ | |||
#include <stddef.h> | #include <stddef.h> | |||
#include <stdio.h> | #include <stdio.h> | |||
#include "v8config.h" | #include "v8config.h" | |||
End of changes. 1 change blocks. | ||||
25 lines changed or deleted | 2 lines changed or added | |||