| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 if (IsJSReceiver()) { | 134 if (IsJSReceiver()) { |
| 135 holder = this; | 135 holder = this; |
| 136 } else { | 136 } else { |
| 137 Context* native_context = Isolate::Current()->context()->native_context(); | 137 Context* native_context = Isolate::Current()->context()->native_context(); |
| 138 if (IsNumber()) { | 138 if (IsNumber()) { |
| 139 holder = native_context->number_function()->instance_prototype(); | 139 holder = native_context->number_function()->instance_prototype(); |
| 140 } else if (IsString()) { | 140 } else if (IsString()) { |
| 141 holder = native_context->string_function()->instance_prototype(); | 141 holder = native_context->string_function()->instance_prototype(); |
| 142 } else if (IsBoolean()) { | 142 } else if (IsBoolean()) { |
| 143 holder = native_context->boolean_function()->instance_prototype(); | 143 holder = native_context->boolean_function()->instance_prototype(); |
| 144 } else { |
| 145 Isolate::Current()->PushStackTraceAndDie( |
| 146 0xDEAD0000, this, JSReceiver::cast(this)->map(), 0xDEAD0001); |
| 144 } | 147 } |
| 145 } | 148 } |
| 146 ASSERT(holder != NULL); // Cannot handle null or undefined. | 149 ASSERT(holder != NULL); // Cannot handle null or undefined. |
| 147 JSReceiver::cast(holder)->Lookup(name, result); | 150 JSReceiver::cast(holder)->Lookup(name, result); |
| 148 } | 151 } |
| 149 | 152 |
| 150 | 153 |
| 151 MaybeObject* Object::GetPropertyWithReceiver(Object* receiver, | 154 MaybeObject* Object::GetPropertyWithReceiver(Object* receiver, |
| 152 String* name, | 155 String* name, |
| 153 PropertyAttributes* attributes) { | 156 PropertyAttributes* attributes) { |
| (...skipping 13045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13199 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13202 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 13200 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13203 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 13201 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13204 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 13202 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13205 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 13203 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13206 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 13204 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13207 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 13205 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13208 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 13206 } | 13209 } |
| 13207 | 13210 |
| 13208 } } // namespace v8::internal | 13211 } } // namespace v8::internal |
| OLD | NEW |