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

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

Issue 2239009: Direct load of global function prototype. (Closed)
Patch Set: Ports Created 10 years, 6 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/ia32/stub-cache-ia32.cc ('k') | src/x64/stub-cache-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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 Object* CompileCallDebugBreak(Code::Flags flags); 342 Object* CompileCallDebugBreak(Code::Flags flags);
343 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); 343 Object* CompileCallDebugPrepareStepIn(Code::Flags flags);
344 #endif 344 #endif
345 Object* CompileLazyCompile(Code::Flags flags); 345 Object* CompileLazyCompile(Code::Flags flags);
346 346
347 // Static functions for generating parts of stubs. 347 // Static functions for generating parts of stubs.
348 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, 348 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm,
349 int index, 349 int index,
350 Register prototype); 350 Register prototype);
351 351
352 // Generates prototype loading code that uses the objects from the
353 // context we were in when this function was called. This ties the
354 // generated code to a particular context and so must not be used in
355 // cases where the generated code is not allowed to have references
356 // to objects from a context.
357 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm,
358 int index,
359 Register prototype);
360
352 static void GenerateFastPropertyLoad(MacroAssembler* masm, 361 static void GenerateFastPropertyLoad(MacroAssembler* masm,
353 Register dst, Register src, 362 Register dst, Register src,
354 JSObject* holder, int index); 363 JSObject* holder, int index);
355 364
356 static void GenerateLoadArrayLength(MacroAssembler* masm, 365 static void GenerateLoadArrayLength(MacroAssembler* masm,
357 Register receiver, 366 Register receiver,
358 Register scratch, 367 Register scratch,
359 Label* miss_label); 368 Label* miss_label);
360 369
361 static void GenerateLoadStringLength(MacroAssembler* masm, 370 static void GenerateLoadStringLength(MacroAssembler* masm,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 701
693 JSFunction* constant_function_; 702 JSFunction* constant_function_;
694 bool is_simple_api_call_; 703 bool is_simple_api_call_;
695 FunctionTemplateInfo* expected_receiver_type_; 704 FunctionTemplateInfo* expected_receiver_type_;
696 CallHandlerInfo* api_call_info_; 705 CallHandlerInfo* api_call_info_;
697 }; 706 };
698 707
699 } } // namespace v8::internal 708 } } // namespace v8::internal
700 709
701 #endif // V8_STUB_CACHE_H_ 710 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698