| OLD | NEW |
| 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 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1422 // function. | 1422 // function. |
| 1423 return result; | 1423 return result; |
| 1424 } | 1424 } |
| 1425 | 1425 |
| 1426 | 1426 |
| 1427 MaybeObject* StoreInterceptorProperty(Arguments args) { | 1427 MaybeObject* StoreInterceptorProperty(Arguments args) { |
| 1428 ASSERT(args.length() == 4); | 1428 ASSERT(args.length() == 4); |
| 1429 JSObject* recv = JSObject::cast(args[0]); | 1429 JSObject* recv = JSObject::cast(args[0]); |
| 1430 String* name = String::cast(args[1]); | 1430 String* name = String::cast(args[1]); |
| 1431 Object* value = args[2]; | 1431 Object* value = args[2]; |
| 1432 StrictModeFlag strict = | 1432 StrictModeFlag strict_mode = |
| 1433 static_cast<StrictModeFlag>(Smi::cast(args[3])->value()); | 1433 static_cast<StrictModeFlag>(Smi::cast(args[3])->value()); |
| 1434 ASSERT(strict == kStrictMode || strict == kNonStrictMode); | 1434 ASSERT(strict_mode == kStrictMode || strict_mode == kNonStrictMode); |
| 1435 ASSERT(recv->HasNamedInterceptor()); | 1435 ASSERT(recv->HasNamedInterceptor()); |
| 1436 PropertyAttributes attr = NONE; | 1436 PropertyAttributes attr = NONE; |
| 1437 MaybeObject* result = recv->SetPropertyWithInterceptor( | 1437 MaybeObject* result = recv->SetPropertyWithInterceptor( |
| 1438 name, value, attr, strict); | 1438 name, value, attr, strict_mode); |
| 1439 return result; | 1439 return result; |
| 1440 } | 1440 } |
| 1441 | 1441 |
| 1442 | 1442 |
| 1443 MaybeObject* KeyedLoadPropertyWithInterceptor(Arguments args) { | 1443 MaybeObject* KeyedLoadPropertyWithInterceptor(Arguments args) { |
| 1444 JSObject* receiver = JSObject::cast(args[0]); | 1444 JSObject* receiver = JSObject::cast(args[0]); |
| 1445 ASSERT(Smi::cast(args[1])->value() >= 0); | 1445 ASSERT(Smi::cast(args[1])->value() >= 0); |
| 1446 uint32_t index = Smi::cast(args[1])->value(); | 1446 uint32_t index = Smi::cast(args[1])->value(); |
| 1447 return receiver->GetElementWithInterceptor(receiver, index); | 1447 return receiver->GetElementWithInterceptor(receiver, index); |
| 1448 } | 1448 } |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 if (!maybe_result->ToObject(&result)) return maybe_result; | 1869 if (!maybe_result->ToObject(&result)) return maybe_result; |
| 1870 } | 1870 } |
| 1871 Code* code = Code::cast(result); | 1871 Code* code = Code::cast(result); |
| 1872 USE(code); | 1872 USE(code); |
| 1873 PROFILE(CodeCreateEvent(Logger::STUB_TAG, code, "ExternalArrayStub")); | 1873 PROFILE(CodeCreateEvent(Logger::STUB_TAG, code, "ExternalArrayStub")); |
| 1874 return result; | 1874 return result; |
| 1875 } | 1875 } |
| 1876 | 1876 |
| 1877 | 1877 |
| 1878 } } // namespace v8::internal | 1878 } } // namespace v8::internal |
| OLD | NEW |