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

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

Issue 6334015: Support StringLength in hydrogen (similar to ArrayLength). (Closed)
Patch Set: Created 9 years, 11 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
« no previous file with comments | « src/ic.cc ('k') | src/x64/ic-x64.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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 static void GenerateLoadArrayLength(MacroAssembler* masm, 421 static void GenerateLoadArrayLength(MacroAssembler* masm,
422 Register receiver, 422 Register receiver,
423 Register scratch, 423 Register scratch,
424 Label* miss_label); 424 Label* miss_label);
425 425
426 static void GenerateLoadStringLength(MacroAssembler* masm, 426 static void GenerateLoadStringLength(MacroAssembler* masm,
427 Register receiver, 427 Register receiver,
428 Register scratch1, 428 Register scratch1,
429 Register scratch2, 429 Register scratch2,
430 Label* miss_label); 430 Label* miss_label,
431 bool support_wrappers);
431 432
432 static void GenerateLoadFunctionPrototype(MacroAssembler* masm, 433 static void GenerateLoadFunctionPrototype(MacroAssembler* masm,
433 Register receiver, 434 Register receiver,
434 Register scratch1, 435 Register scratch1,
435 Register scratch2, 436 Register scratch2,
436 Label* miss_label); 437 Label* miss_label);
437 438
438 static void GenerateStoreField(MacroAssembler* masm, 439 static void GenerateStoreField(MacroAssembler* masm,
439 JSObject* object, 440 JSObject* object,
440 int index, 441 int index,
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( 812 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub(
812 ExternalArrayType array_type, Code::Flags flags); 813 ExternalArrayType array_type, Code::Flags flags);
813 814
814 private: 815 private:
815 MaybeObject* GetCode(Code::Flags flags); 816 MaybeObject* GetCode(Code::Flags flags);
816 }; 817 };
817 818
818 } } // namespace v8::internal 819 } } // namespace v8::internal
819 820
820 #endif // V8_STUB_CACHE_H_ 821 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698