| 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 Object* value = args[2]; | 918 Object* value = args[2]; |
| 919 ASSERT(recv->HasNamedInterceptor()); | 919 ASSERT(recv->HasNamedInterceptor()); |
| 920 PropertyAttributes attr = NONE; | 920 PropertyAttributes attr = NONE; |
| 921 Object* result = recv->SetPropertyWithInterceptor(name, value, attr); | 921 Object* result = recv->SetPropertyWithInterceptor(name, value, attr); |
| 922 return result; | 922 return result; |
| 923 } | 923 } |
| 924 | 924 |
| 925 | 925 |
| 926 Object* KeyedLoadPropertyWithInterceptor(Arguments args) { | 926 Object* KeyedLoadPropertyWithInterceptor(Arguments args) { |
| 927 JSObject* receiver = JSObject::cast(args[0]); | 927 JSObject* receiver = JSObject::cast(args[0]); |
| 928 ASSERT(Smi::cast(args[1])->value() >= 0); |
| 928 uint32_t index = Smi::cast(args[1])->value(); | 929 uint32_t index = Smi::cast(args[1])->value(); |
| 929 return receiver->GetElementWithInterceptor(receiver, index); | 930 return receiver->GetElementWithInterceptor(receiver, index); |
| 930 } | 931 } |
| 931 | 932 |
| 932 | 933 |
| 933 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) { | 934 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) { |
| 934 HandleScope scope; | 935 HandleScope scope; |
| 935 int argc = Code::ExtractArgumentsCountFromFlags(flags); | 936 int argc = Code::ExtractArgumentsCountFromFlags(flags); |
| 936 CallIC::GenerateInitialize(masm(), argc); | 937 CallIC::GenerateInitialize(masm(), argc); |
| 937 Object* result = GetCodeWithFlags(flags, "CompileCallInitialize"); | 938 Object* result = GetCodeWithFlags(flags, "CompileCallInitialize"); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 if (!result->IsFailure()) { | 1125 if (!result->IsFailure()) { |
| 1125 Code* code = Code::cast(result); | 1126 Code* code = Code::cast(result); |
| 1126 USE(code); | 1127 USE(code); |
| 1127 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub")); | 1128 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub")); |
| 1128 } | 1129 } |
| 1129 return result; | 1130 return result; |
| 1130 } | 1131 } |
| 1131 | 1132 |
| 1132 | 1133 |
| 1133 } } // namespace v8::internal | 1134 } } // namespace v8::internal |
| OLD | NEW |