| OLD | NEW | 
|     1 // Copyright 2011 the V8 project authors. All rights reserved. |     1 // Copyright 2011 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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1363   // function. |  1363   // function. | 
|  1364   return result; |  1364   return result; | 
|  1365 } |  1365 } | 
|  1366  |  1366  | 
|  1367  |  1367  | 
|  1368 RUNTIME_FUNCTION(MaybeObject*, StoreInterceptorProperty) { |  1368 RUNTIME_FUNCTION(MaybeObject*, StoreInterceptorProperty) { | 
|  1369   ASSERT(args.length() == 4); |  1369   ASSERT(args.length() == 4); | 
|  1370   JSObject* recv = JSObject::cast(args[0]); |  1370   JSObject* recv = JSObject::cast(args[0]); | 
|  1371   String* name = String::cast(args[1]); |  1371   String* name = String::cast(args[1]); | 
|  1372   Object* value = args[2]; |  1372   Object* value = args[2]; | 
|  1373   StrictModeFlag strict_mode = |  1373   StrictModeFlag strict_mode = static_cast<StrictModeFlag>(args.smi_at(3)); | 
|  1374       static_cast<StrictModeFlag>(Smi::cast(args[3])->value()); |  | 
|  1375   ASSERT(strict_mode == kStrictMode || strict_mode == kNonStrictMode); |  1374   ASSERT(strict_mode == kStrictMode || strict_mode == kNonStrictMode); | 
|  1376   ASSERT(recv->HasNamedInterceptor()); |  1375   ASSERT(recv->HasNamedInterceptor()); | 
|  1377   PropertyAttributes attr = NONE; |  1376   PropertyAttributes attr = NONE; | 
|  1378   MaybeObject* result = recv->SetPropertyWithInterceptor( |  1377   MaybeObject* result = recv->SetPropertyWithInterceptor( | 
|  1379       name, value, attr, strict_mode); |  1378       name, value, attr, strict_mode); | 
|  1380   return result; |  1379   return result; | 
|  1381 } |  1380 } | 
|  1382  |  1381  | 
|  1383  |  1382  | 
|  1384 RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor) { |  1383 RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor) { | 
|  1385   JSObject* receiver = JSObject::cast(args[0]); |  1384   JSObject* receiver = JSObject::cast(args[0]); | 
|  1386   ASSERT(Smi::cast(args[1])->value() >= 0); |  1385   ASSERT(args.smi_at(1) >= 0); | 
|  1387   uint32_t index = Smi::cast(args[1])->value(); |  1386   uint32_t index = args.smi_at(1); | 
|  1388   return receiver->GetElementWithInterceptor(receiver, index); |  1387   return receiver->GetElementWithInterceptor(receiver, index); | 
|  1389 } |  1388 } | 
|  1390  |  1389  | 
|  1391  |  1390  | 
|  1392 MaybeObject* StubCompiler::CompileCallInitialize(Code::Flags flags) { |  1391 MaybeObject* StubCompiler::CompileCallInitialize(Code::Flags flags) { | 
|  1393   HandleScope scope(isolate()); |  1392   HandleScope scope(isolate()); | 
|  1394   int argc = Code::ExtractArgumentsCountFromFlags(flags); |  1393   int argc = Code::ExtractArgumentsCountFromFlags(flags); | 
|  1395   Code::Kind kind = Code::ExtractKindFromFlags(flags); |  1394   Code::Kind kind = Code::ExtractKindFromFlags(flags); | 
|  1396   Code::ExtraICState extra_ic_state = Code::ExtractExtraICStateFromFlags(flags); |  1395   Code::ExtraICState extra_ic_state = Code::ExtractExtraICStateFromFlags(flags); | 
|  1397   if (kind == Code::CALL_IC) { |  1396   if (kind == Code::CALL_IC) { | 
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1871       expected_receiver_type_ = |  1870       expected_receiver_type_ = | 
|  1872           FunctionTemplateInfo::cast(signature->receiver()); |  1871           FunctionTemplateInfo::cast(signature->receiver()); | 
|  1873     } |  1872     } | 
|  1874   } |  1873   } | 
|  1875  |  1874  | 
|  1876   is_simple_api_call_ = true; |  1875   is_simple_api_call_ = true; | 
|  1877 } |  1876 } | 
|  1878  |  1877  | 
|  1879  |  1878  | 
|  1880 } }  // namespace v8::internal |  1879 } }  // namespace v8::internal | 
| OLD | NEW |