| Index: test/cctest/test-decls.cc
|
| diff --git a/test/cctest/test-decls.cc b/test/cctest/test-decls.cc
|
| index 34f0b69643e05c90bc8450d361205dbd748d05dd..27df270023a0c8fe53119fea944eed5d54b84656 100644
|
| --- a/test/cctest/test-decls.cc
|
| +++ b/test/cctest/test-decls.cc
|
| @@ -70,9 +70,9 @@ class DeclarationContext {
|
| int query_count() const { return query_count_; }
|
|
|
| protected:
|
| - virtual v8::Handle<Value> Get(Local<String> key);
|
| - virtual v8::Handle<Value> Set(Local<String> key, Local<Value> value);
|
| - virtual v8::Handle<Integer> Query(Local<String> key);
|
| + virtual v8::Handle<Value> Get(Local<Name> key);
|
| + virtual v8::Handle<Value> Set(Local<Name> key, Local<Value> value);
|
| + virtual v8::Handle<Integer> Query(Local<Name> key);
|
|
|
| void InitializeIfNeeded();
|
|
|
| @@ -88,12 +88,12 @@ class DeclarationContext {
|
|
|
| // The handlers are called as static functions that forward
|
| // to the instance specific virtual methods.
|
| - static void HandleGet(Local<String> key,
|
| + static void HandleGet(Local<Name> key,
|
| const v8::PropertyCallbackInfo<v8::Value>& info);
|
| - static void HandleSet(Local<String> key,
|
| + static void HandleSet(Local<Name> key,
|
| Local<Value> value,
|
| const v8::PropertyCallbackInfo<v8::Value>& info);
|
| - static void HandleQuery(Local<String> key,
|
| + static void HandleQuery(Local<Name> key,
|
| const v8::PropertyCallbackInfo<v8::Integer>& info);
|
|
|
| v8::Isolate* isolate() const { return CcTest::isolate(); }
|
| @@ -178,7 +178,7 @@ void DeclarationContext::Check(const char* source,
|
|
|
|
|
| void DeclarationContext::HandleGet(
|
| - Local<String> key,
|
| + Local<Name> key,
|
| const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| DeclarationContext* context = GetInstance(info.Data());
|
| context->get_count_++;
|
| @@ -187,7 +187,7 @@ void DeclarationContext::HandleGet(
|
|
|
|
|
| void DeclarationContext::HandleSet(
|
| - Local<String> key,
|
| + Local<Name> key,
|
| Local<Value> value,
|
| const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| DeclarationContext* context = GetInstance(info.Data());
|
| @@ -197,7 +197,7 @@ void DeclarationContext::HandleSet(
|
|
|
|
|
| void DeclarationContext::HandleQuery(
|
| - Local<String> key,
|
| + Local<Name> key,
|
| const v8::PropertyCallbackInfo<v8::Integer>& info) {
|
| DeclarationContext* context = GetInstance(info.Data());
|
| context->query_count_++;
|
| @@ -211,18 +211,18 @@ DeclarationContext* DeclarationContext::GetInstance(Local<Value> data) {
|
| }
|
|
|
|
|
| -v8::Handle<Value> DeclarationContext::Get(Local<String> key) {
|
| +v8::Handle<Value> DeclarationContext::Get(Local<Name> key) {
|
| return v8::Handle<Value>();
|
| }
|
|
|
|
|
| -v8::Handle<Value> DeclarationContext::Set(Local<String> key,
|
| +v8::Handle<Value> DeclarationContext::Set(Local<Name> key,
|
| Local<Value> value) {
|
| return v8::Handle<Value>();
|
| }
|
|
|
|
|
| -v8::Handle<Integer> DeclarationContext::Query(Local<String> key) {
|
| +v8::Handle<Integer> DeclarationContext::Query(Local<Name> key) {
|
| return v8::Handle<Integer>();
|
| }
|
|
|
|
|