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

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

Issue 3410014: Fix direct loading of global function prototypes: (Closed)
Patch Set: Added a test for Boolean Created 10 years, 3 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 Object* CompileCallDebugBreak(Code::Flags flags); 363 Object* CompileCallDebugBreak(Code::Flags flags);
364 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); 364 Object* CompileCallDebugPrepareStepIn(Code::Flags flags);
365 #endif 365 #endif
366 366
367 // Static functions for generating parts of stubs. 367 // Static functions for generating parts of stubs.
368 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, 368 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm,
369 int index, 369 int index,
370 Register prototype); 370 Register prototype);
371 371
372 // Generates prototype loading code that uses the objects from the 372 // Generates prototype loading code that uses the objects from the
373 // context we were in when this function was called. This ties the 373 // context we were in when this function was called. If the context
374 // generated code to a particular context and so must not be used in 374 // has changed, a jump to miss is performed. This ties the generated
375 // cases where the generated code is not allowed to have references 375 // code to a particular context and so must not be used in cases
376 // to objects from a context. 376 // where the generated code is not allowed to have references to
377 // objects from a context.
377 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, 378 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm,
378 int index, 379 int index,
379 Register prototype); 380 Register prototype,
381 Label* miss);
380 382
381 static void GenerateFastPropertyLoad(MacroAssembler* masm, 383 static void GenerateFastPropertyLoad(MacroAssembler* masm,
382 Register dst, Register src, 384 Register dst, Register src,
383 JSObject* holder, int index); 385 JSObject* holder, int index);
384 386
385 static void GenerateLoadArrayLength(MacroAssembler* masm, 387 static void GenerateLoadArrayLength(MacroAssembler* masm,
386 Register receiver, 388 Register receiver,
387 Register scratch, 389 Register scratch,
388 Label* miss_label); 390 Label* miss_label);
389 391
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 772
771 JSFunction* constant_function_; 773 JSFunction* constant_function_;
772 bool is_simple_api_call_; 774 bool is_simple_api_call_;
773 FunctionTemplateInfo* expected_receiver_type_; 775 FunctionTemplateInfo* expected_receiver_type_;
774 CallHandlerInfo* api_call_info_; 776 CallHandlerInfo* api_call_info_;
775 }; 777 };
776 778
777 } } // namespace v8::internal 779 } } // namespace v8::internal
778 780
779 #endif // V8_STUB_CACHE_H_ 781 #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