| 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 Object* value = args[2]; | 1016 Object* value = args[2]; |
| 1017 ASSERT(recv->HasNamedInterceptor()); | 1017 ASSERT(recv->HasNamedInterceptor()); |
| 1018 PropertyAttributes attr = NONE; | 1018 PropertyAttributes attr = NONE; |
| 1019 Object* result = recv->SetPropertyWithInterceptor(name, value, attr); | 1019 Object* result = recv->SetPropertyWithInterceptor(name, value, attr); |
| 1020 return result; | 1020 return result; |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 | 1023 |
| 1024 Object* KeyedLoadPropertyWithInterceptor(Arguments args) { | 1024 Object* KeyedLoadPropertyWithInterceptor(Arguments args) { |
| 1025 JSObject* receiver = JSObject::cast(args[0]); | 1025 JSObject* receiver = JSObject::cast(args[0]); |
| 1026 ASSERT(Smi::cast(args[1])->value() >= 0); |
| 1026 uint32_t index = Smi::cast(args[1])->value(); | 1027 uint32_t index = Smi::cast(args[1])->value(); |
| 1027 return receiver->GetElementWithInterceptor(receiver, index); | 1028 return receiver->GetElementWithInterceptor(receiver, index); |
| 1028 } | 1029 } |
| 1029 | 1030 |
| 1030 | 1031 |
| 1031 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) { | 1032 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) { |
| 1032 HandleScope scope; | 1033 HandleScope scope; |
| 1033 int argc = Code::ExtractArgumentsCountFromFlags(flags); | 1034 int argc = Code::ExtractArgumentsCountFromFlags(flags); |
| 1034 Code::Kind kind = Code::ExtractKindFromFlags(flags); | 1035 Code::Kind kind = Code::ExtractKindFromFlags(flags); |
| 1035 if (kind == Code::CALL_IC) { | 1036 if (kind == Code::CALL_IC) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 expected_receiver_type_ = | 1371 expected_receiver_type_ = |
| 1371 FunctionTemplateInfo::cast(signature->receiver()); | 1372 FunctionTemplateInfo::cast(signature->receiver()); |
| 1372 } | 1373 } |
| 1373 } | 1374 } |
| 1374 | 1375 |
| 1375 is_simple_api_call_ = true; | 1376 is_simple_api_call_ = true; |
| 1376 } | 1377 } |
| 1377 | 1378 |
| 1378 | 1379 |
| 1379 } } // namespace v8::internal | 1380 } } // namespace v8::internal |
| OLD | NEW |