| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 260 } | 260 } | 
| 261 | 261 | 
| 262 | 262 | 
| 263 Handle<JSObject> TypeFeedbackOracle::GetPrototypeForPrimitiveCheck( | 263 Handle<JSObject> TypeFeedbackOracle::GetPrototypeForPrimitiveCheck( | 
| 264     CheckType check) { | 264     CheckType check) { | 
| 265   JSFunction* function = NULL; | 265   JSFunction* function = NULL; | 
| 266   switch (check) { | 266   switch (check) { | 
| 267     case RECEIVER_MAP_CHECK: | 267     case RECEIVER_MAP_CHECK: | 
| 268       UNREACHABLE(); | 268       UNREACHABLE(); | 
| 269       break; | 269       break; | 
|  | 270     case SYMBOL_CHECK: | 
|  | 271       return Handle<JSObject>(native_context_->symbol_delegate()); | 
| 270     case STRING_CHECK: | 272     case STRING_CHECK: | 
| 271       function = native_context_->string_function(); | 273       function = native_context_->string_function(); | 
| 272       break; | 274       break; | 
| 273     case NUMBER_CHECK: | 275     case NUMBER_CHECK: | 
| 274       function = native_context_->number_function(); | 276       function = native_context_->number_function(); | 
| 275       break; | 277       break; | 
| 276     case BOOLEAN_CHECK: | 278     case BOOLEAN_CHECK: | 
| 277       function = native_context_->boolean_function(); | 279       function = native_context_->boolean_function(); | 
| 278       break; | 280       break; | 
| 279   } | 281   } | 
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 712   USE(maybe_result); | 714   USE(maybe_result); | 
| 713 #ifdef DEBUG | 715 #ifdef DEBUG | 
| 714   Object* result = NULL; | 716   Object* result = NULL; | 
| 715   // Dictionary has been allocated with sufficient size for all elements. | 717   // Dictionary has been allocated with sufficient size for all elements. | 
| 716   ASSERT(maybe_result->ToObject(&result)); | 718   ASSERT(maybe_result->ToObject(&result)); | 
| 717   ASSERT(*dictionary_ == result); | 719   ASSERT(*dictionary_ == result); | 
| 718 #endif | 720 #endif | 
| 719 } | 721 } | 
| 720 | 722 | 
| 721 } }  // namespace v8::internal | 723 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|