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

Side by Side Diff: src/full-codegen.h

Issue 14066016: Generators can resume (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Use Abort() instead of int3() Created 7 years, 8 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/arm/full-codegen-arm.cc ('k') | src/full-codegen.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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); 479 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id);
480 480
481 void EmitInlineRuntimeCall(CallRuntime* expr); 481 void EmitInlineRuntimeCall(CallRuntime* expr);
482 482
483 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ 483 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \
484 void Emit##name(CallRuntime* expr); 484 void Emit##name(CallRuntime* expr);
485 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) 485 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL)
486 INLINE_RUNTIME_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) 486 INLINE_RUNTIME_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL)
487 #undef EMIT_INLINE_RUNTIME_CALL 487 #undef EMIT_INLINE_RUNTIME_CALL
488 488
489 // Platform-specific code for resuming generators.
490 void EmitGeneratorResume(Expression *generator,
491 Expression *value,
492 JSGeneratorObject::ResumeMode resume_mode);
493
489 // Platform-specific code for loading variables. 494 // Platform-specific code for loading variables.
490 void EmitLoadGlobalCheckExtensions(Variable* var, 495 void EmitLoadGlobalCheckExtensions(Variable* var,
491 TypeofState typeof_state, 496 TypeofState typeof_state,
492 Label* slow); 497 Label* slow);
493 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); 498 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow);
494 void EmitDynamicLookupFastCase(Variable* var, 499 void EmitDynamicLookupFastCase(Variable* var,
495 TypeofState typeof_state, 500 TypeofState typeof_state,
496 Label* slow, 501 Label* slow,
497 Label* done); 502 Label* done);
498 void EmitVariableLoad(VariableProxy* proxy); 503 void EmitVariableLoad(VariableProxy* proxy);
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 } 863 }
859 864
860 private: 865 private:
861 Zone* zone_; 866 Zone* zone_;
862 }; 867 };
863 868
864 869
865 } } // namespace v8::internal 870 } } // namespace v8::internal
866 871
867 #endif // V8_FULL_CODEGEN_H_ 872 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698