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 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 return NONE; | 2325 return NONE; |
2326 } | 2326 } |
2327 | 2327 |
2328 | 2328 |
2329 void JSProxy::Fix() { | 2329 void JSProxy::Fix() { |
2330 Isolate* isolate = GetIsolate(); | 2330 Isolate* isolate = GetIsolate(); |
2331 HandleScope scope(isolate); | 2331 HandleScope scope(isolate); |
2332 Handle<JSProxy> self(this); | 2332 Handle<JSProxy> self(this); |
2333 | 2333 |
2334 isolate->factory()->BecomeJSObject(self); | 2334 isolate->factory()->BecomeJSObject(self); |
2335 ASSERT(IsJSObject()); | 2335 ASSERT(self->IsJSObject()); |
2336 // TODO(rossberg): recognize function proxies. | 2336 // TODO(rossberg): recognize function proxies. |
2337 } | 2337 } |
2338 | 2338 |
2339 | 2339 |
2340 | 2340 |
2341 MaybeObject* JSObject::SetPropertyForResult(LookupResult* result, | 2341 MaybeObject* JSObject::SetPropertyForResult(LookupResult* result, |
2342 String* name, | 2342 String* name, |
2343 Object* value, | 2343 Object* value, |
2344 PropertyAttributes attributes, | 2344 PropertyAttributes attributes, |
2345 StrictModeFlag strict_mode) { | 2345 StrictModeFlag strict_mode) { |
(...skipping 9443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11789 if (break_point_objects()->IsUndefined()) return 0; | 11789 if (break_point_objects()->IsUndefined()) return 0; |
11790 // Single beak point. | 11790 // Single beak point. |
11791 if (!break_point_objects()->IsFixedArray()) return 1; | 11791 if (!break_point_objects()->IsFixedArray()) return 1; |
11792 // Multiple break points. | 11792 // Multiple break points. |
11793 return FixedArray::cast(break_point_objects())->length(); | 11793 return FixedArray::cast(break_point_objects())->length(); |
11794 } | 11794 } |
11795 #endif | 11795 #endif |
11796 | 11796 |
11797 | 11797 |
11798 } } // namespace v8::internal | 11798 } } // namespace v8::internal |
OLD | NEW |