Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/objects-inl.h

Issue 14834: Fixing a subtle bug in receiver resolution when a thrown and caught function ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 342
343 bool Object::IsDescriptorArray() { 343 bool Object::IsDescriptorArray() {
344 return IsFixedArray(); 344 return IsFixedArray();
345 } 345 }
346 346
347 347
348 bool Object::IsContext() { 348 bool Object::IsContext() {
349 return Object::IsHeapObject() 349 return Object::IsHeapObject()
350 && (HeapObject::cast(this)->map() == Heap::context_map() || 350 && (HeapObject::cast(this)->map() == Heap::context_map() ||
351 HeapObject::cast(this)->map() == Heap::catch_context_map() ||
351 HeapObject::cast(this)->map() == Heap::global_context_map()); 352 HeapObject::cast(this)->map() == Heap::global_context_map());
352 } 353 }
353 354
354 355
356 bool Object::IsCatchContext() {
357 return Object::IsHeapObject()
358 && HeapObject::cast(this)->map() == Heap::catch_context_map();
359 }
360
361
355 bool Object::IsGlobalContext() { 362 bool Object::IsGlobalContext() {
356 return Object::IsHeapObject() 363 return Object::IsHeapObject()
357 && HeapObject::cast(this)->map() == Heap::global_context_map(); 364 && HeapObject::cast(this)->map() == Heap::global_context_map();
358 } 365 }
359 366
360 367
361 bool Object::IsJSFunction() { 368 bool Object::IsJSFunction() {
362 return Object::IsHeapObject() 369 return Object::IsHeapObject()
363 && HeapObject::cast(this)->map()->instance_type() == JS_FUNCTION_TYPE; 370 && HeapObject::cast(this)->map()->instance_type() == JS_FUNCTION_TYPE;
364 } 371 }
(...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 #undef WRITE_INT_FIELD 2486 #undef WRITE_INT_FIELD
2480 #undef READ_SHORT_FIELD 2487 #undef READ_SHORT_FIELD
2481 #undef WRITE_SHORT_FIELD 2488 #undef WRITE_SHORT_FIELD
2482 #undef READ_BYTE_FIELD 2489 #undef READ_BYTE_FIELD
2483 #undef WRITE_BYTE_FIELD 2490 #undef WRITE_BYTE_FIELD
2484 2491
2485 2492
2486 } } // namespace v8::internal 2493 } } // namespace v8::internal
2487 2494
2488 #endif // V8_OBJECTS_INL_H_ 2495 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698