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

Side by Side Diff: src/stub-cache.h

Issue 9315032: ARM: Use ubfx and movw instructions to avoid a PC-relative load on Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 months 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/spaces.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698