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

Side by Side Diff: src/stub-cache.cc

Issue 6603028: Merge revisions 7030:7051 from bleeding_edge to isolates branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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 | « src/string.js ('k') | src/v8natives.js » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 return result; 1441 return result;
1442 } 1442 }
1443 1443
1444 1444
1445 MaybeObject* StoreInterceptorProperty(RUNTIME_CALLING_CONVENTION) { 1445 MaybeObject* StoreInterceptorProperty(RUNTIME_CALLING_CONVENTION) {
1446 RUNTIME_GET_ISOLATE; 1446 RUNTIME_GET_ISOLATE;
1447 ASSERT(args.length() == 4); 1447 ASSERT(args.length() == 4);
1448 JSObject* recv = JSObject::cast(args[0]); 1448 JSObject* recv = JSObject::cast(args[0]);
1449 String* name = String::cast(args[1]); 1449 String* name = String::cast(args[1]);
1450 Object* value = args[2]; 1450 Object* value = args[2];
1451 StrictModeFlag strict = 1451 StrictModeFlag strict_mode =
1452 static_cast<StrictModeFlag>(Smi::cast(args[3])->value()); 1452 static_cast<StrictModeFlag>(Smi::cast(args[3])->value());
1453 ASSERT(strict == kStrictMode || strict == kNonStrictMode); 1453 ASSERT(strict_mode == kStrictMode || strict_mode == kNonStrictMode);
1454 ASSERT(recv->HasNamedInterceptor()); 1454 ASSERT(recv->HasNamedInterceptor());
1455 PropertyAttributes attr = NONE; 1455 PropertyAttributes attr = NONE;
1456 MaybeObject* result = recv->SetPropertyWithInterceptor( 1456 MaybeObject* result = recv->SetPropertyWithInterceptor(
1457 name, value, attr, strict); 1457 name, value, attr, strict_mode);
1458 return result; 1458 return result;
1459 } 1459 }
1460 1460
1461 1461
1462 MaybeObject* KeyedLoadPropertyWithInterceptor(RUNTIME_CALLING_CONVENTION) { 1462 MaybeObject* KeyedLoadPropertyWithInterceptor(RUNTIME_CALLING_CONVENTION) {
1463 RUNTIME_GET_ISOLATE; 1463 RUNTIME_GET_ISOLATE;
1464 JSObject* receiver = JSObject::cast(args[0]); 1464 JSObject* receiver = JSObject::cast(args[0]);
1465 ASSERT(Smi::cast(args[1])->value() >= 0); 1465 ASSERT(Smi::cast(args[1])->value() >= 0);
1466 uint32_t index = Smi::cast(args[1])->value(); 1466 uint32_t index = Smi::cast(args[1])->value();
1467 return receiver->GetElementWithInterceptor(receiver, index); 1467 return receiver->GetElementWithInterceptor(receiver, index);
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 if (!maybe_result->ToObject(&result)) return maybe_result; 1888 if (!maybe_result->ToObject(&result)) return maybe_result;
1889 } 1889 }
1890 Code* code = Code::cast(result); 1890 Code* code = Code::cast(result);
1891 USE(code); 1891 USE(code);
1892 PROFILE(CodeCreateEvent(Logger::STUB_TAG, code, "ExternalArrayStub")); 1892 PROFILE(CodeCreateEvent(Logger::STUB_TAG, code, "ExternalArrayStub"));
1893 return result; 1893 return result;
1894 } 1894 }
1895 1895
1896 1896
1897 } } // namespace v8::internal 1897 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/string.js ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698