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

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

Issue 197603002: Turn StringLengthStub (used by string wrappers only) into a hydrogen stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/ic.cc ('k') | src/x64/code-stubs-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 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 Register src, 353 Register src,
354 bool inobject, 354 bool inobject,
355 int index, 355 int index,
356 Representation representation); 356 Representation representation);
357 357
358 static void GenerateLoadArrayLength(MacroAssembler* masm, 358 static void GenerateLoadArrayLength(MacroAssembler* masm,
359 Register receiver, 359 Register receiver,
360 Register scratch, 360 Register scratch,
361 Label* miss_label); 361 Label* miss_label);
362 362
363 static void GenerateLoadStringLength(MacroAssembler* masm,
364 Register receiver,
365 Register scratch1,
366 Register scratch2,
367 Label* miss_label);
368
369 static void GenerateLoadFunctionPrototype(MacroAssembler* masm, 363 static void GenerateLoadFunctionPrototype(MacroAssembler* masm,
370 Register receiver, 364 Register receiver,
371 Register scratch1, 365 Register scratch1,
372 Register scratch2, 366 Register scratch2,
373 Label* miss_label); 367 Label* miss_label);
374 368
375 // Generate code to check that a global property cell is empty. Create 369 // Generate code to check that a global property cell is empty. Create
376 // the property cell at compilation time if no cell exists for the 370 // the property cell at compilation time if no cell exists for the
377 // property. 371 // property.
378 static void GenerateCheckPropertyCell(MacroAssembler* masm, 372 static void GenerateCheckPropertyCell(MacroAssembler* masm,
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 Handle<JSFunction> constant_function_; 847 Handle<JSFunction> constant_function_;
854 bool is_simple_api_call_; 848 bool is_simple_api_call_;
855 Handle<FunctionTemplateInfo> expected_receiver_type_; 849 Handle<FunctionTemplateInfo> expected_receiver_type_;
856 Handle<CallHandlerInfo> api_call_info_; 850 Handle<CallHandlerInfo> api_call_info_;
857 }; 851 };
858 852
859 853
860 } } // namespace v8::internal 854 } } // namespace v8::internal
861 855
862 #endif // V8_STUB_CACHE_H_ 856 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698