| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 // The function can optionally (when save_at_depth != | 463 // The function can optionally (when save_at_depth != |
| 464 // kInvalidProtoDepth) save the object at the given depth by moving | 464 // kInvalidProtoDepth) save the object at the given depth by moving |
| 465 // it to [esp + kPointerSize]. | 465 // it to [esp + kPointerSize]. |
| 466 Register CheckPrototypes(Handle<JSObject> object, | 466 Register CheckPrototypes(Handle<JSObject> object, |
| 467 Register object_reg, | 467 Register object_reg, |
| 468 Handle<JSObject> holder, | 468 Handle<JSObject> holder, |
| 469 Register holder_reg, | 469 Register holder_reg, |
| 470 Register scratch1, | 470 Register scratch1, |
| 471 Register scratch2, | 471 Register scratch2, |
| 472 Handle<String> name, | 472 Handle<String> name, |
| 473 Label* miss) { | 473 Label* miss, |
| 474 bool fast_map_check = true) { |
| 474 return CheckPrototypes(object, object_reg, holder, holder_reg, scratch1, | 475 return CheckPrototypes(object, object_reg, holder, holder_reg, scratch1, |
| 475 scratch2, name, kInvalidProtoDepth, miss); | 476 scratch2, name, kInvalidProtoDepth, miss, fast_map_ch
eck); |
| 476 } | 477 } |
| 477 | 478 |
| 478 Register CheckPrototypes(Handle<JSObject> object, | 479 Register CheckPrototypes(Handle<JSObject> object, |
| 479 Register object_reg, | 480 Register object_reg, |
| 480 Handle<JSObject> holder, | 481 Handle<JSObject> holder, |
| 481 Register holder_reg, | 482 Register holder_reg, |
| 482 Register scratch1, | 483 Register scratch1, |
| 483 Register scratch2, | 484 Register scratch2, |
| 484 Handle<String> name, | 485 Handle<String> name, |
| 485 int save_at_depth, | 486 int save_at_depth, |
| 486 Label* miss); | 487 Label* miss, |
| 488 bool fast_map_check = true); |
| 487 | 489 |
| 488 protected: | 490 protected: |
| 489 Handle<Code> GetCodeWithFlags(Code::Flags flags, const char* name); | 491 Handle<Code> GetCodeWithFlags(Code::Flags flags, const char* name); |
| 490 Handle<Code> GetCodeWithFlags(Code::Flags flags, Handle<String> name); | 492 Handle<Code> GetCodeWithFlags(Code::Flags flags, Handle<String> name); |
| 491 | 493 |
| 492 MacroAssembler* masm() { return &masm_; } | 494 MacroAssembler* masm() { return &masm_; } |
| 493 void set_failure(Failure* failure) { failure_ = failure; } | 495 void set_failure(Failure* failure) { failure_ = failure; } |
| 494 | 496 |
| 495 void GenerateLoadField(Handle<JSObject> object, | 497 void GenerateLoadField(Handle<JSObject> object, |
| 496 Handle<JSObject> holder, | 498 Handle<JSObject> holder, |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 Handle<JSFunction> constant_function_; | 860 Handle<JSFunction> constant_function_; |
| 859 bool is_simple_api_call_; | 861 bool is_simple_api_call_; |
| 860 Handle<FunctionTemplateInfo> expected_receiver_type_; | 862 Handle<FunctionTemplateInfo> expected_receiver_type_; |
| 861 Handle<CallHandlerInfo> api_call_info_; | 863 Handle<CallHandlerInfo> api_call_info_; |
| 862 }; | 864 }; |
| 863 | 865 |
| 864 | 866 |
| 865 } } // namespace v8::internal | 867 } } // namespace v8::internal |
| 866 | 868 |
| 867 #endif // V8_STUB_CACHE_H_ | 869 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |