OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3311 if (!isolate->MayIndexedAccess(this, index, v8::ACCESS_HAS)) { | 3311 if (!isolate->MayIndexedAccess(this, index, v8::ACCESS_HAS)) { |
3312 isolate->ReportFailedAccessCheck(this, v8::ACCESS_HAS); | 3312 isolate->ReportFailedAccessCheck(this, v8::ACCESS_HAS); |
3313 return ABSENT; | 3313 return ABSENT; |
3314 } | 3314 } |
3315 } | 3315 } |
3316 | 3316 |
3317 if (IsJSGlobalProxy()) { | 3317 if (IsJSGlobalProxy()) { |
3318 Object* proto = GetPrototype(); | 3318 Object* proto = GetPrototype(); |
3319 if (proto->IsNull()) return ABSENT; | 3319 if (proto->IsNull()) return ABSENT; |
3320 ASSERT(proto->IsJSGlobalObject()); | 3320 ASSERT(proto->IsJSGlobalObject()); |
3321 return JSReceiver::cast(proto)->GetElementAttributeWithReceiver( | 3321 return JSObject::cast(proto)->GetElementAttributeWithReceiver( |
3322 receiver, index, continue_search); | 3322 receiver, index, continue_search); |
3323 } | 3323 } |
3324 | 3324 |
3325 // Check for lookup interceptor except when bootstrapping. | 3325 // Check for lookup interceptor except when bootstrapping. |
3326 if (HasIndexedInterceptor() && !isolate->bootstrapper()->IsActive()) { | 3326 if (HasIndexedInterceptor() && !isolate->bootstrapper()->IsActive()) { |
3327 return GetElementAttributeWithInterceptor(receiver, index, continue_search); | 3327 return GetElementAttributeWithInterceptor(receiver, index, continue_search); |
3328 } | 3328 } |
3329 | 3329 |
3330 return GetElementAttributeWithoutInterceptor( | 3330 return GetElementAttributeWithoutInterceptor( |
3331 receiver, index, continue_search); | 3331 receiver, index, continue_search); |
(...skipping 10528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13860 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13860 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13861 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13861 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13862 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13862 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13863 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13863 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13864 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13864 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13865 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13865 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13866 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13866 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13867 } | 13867 } |
13868 | 13868 |
13869 } } // namespace v8::internal | 13869 } } // namespace v8::internal |
OLD | NEW |