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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 202004: Move common enums for macro assemblers (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/macro-assembler-ia32.h » ('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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 20 matching lines...) Expand all
31 #include "assembler.h" 31 #include "assembler.h"
32 32
33 namespace v8 { 33 namespace v8 {
34 namespace internal { 34 namespace internal {
35 35
36 36
37 // Give alias names to registers 37 // Give alias names to registers
38 const Register cp = { 8 }; // JavaScript context pointer 38 const Register cp = { 8 }; // JavaScript context pointer
39 39
40 40
41 // Helper types to make boolean flag easier to read at call-site.
42 enum InvokeFlag {
43 CALL_FUNCTION,
44 JUMP_FUNCTION
45 };
46
47 enum InvokeJSFlags { 41 enum InvokeJSFlags {
48 CALL_JS, 42 CALL_JS,
49 JUMP_JS 43 JUMP_JS
50 }; 44 };
51 45
52 enum ExitJSFlag {
53 RETURN,
54 DO_NOT_RETURN
55 };
56
57 enum CodeLocation {
58 IN_JAVASCRIPT,
59 IN_JS_ENTRY,
60 IN_C_ENTRY
61 };
62
63 enum HandlerType {
64 TRY_CATCH_HANDLER,
65 TRY_FINALLY_HANDLER,
66 JS_ENTRY_HANDLER
67 };
68
69
70 // Flags used for the AllocateObjectInNewSpace functions.
71 enum AllocationFlags {
72 // No special flags.
73 NO_ALLOCATION_FLAGS = 0,
74 // Return the pointer to the allocated already tagged as a heap object.
75 TAG_OBJECT = 1 << 0,
76 // The content of the result register already contains the allocation top in
77 // new space.
78 RESULT_CONTAINS_TOP = 1 << 1
79 };
80
81 46
82 // MacroAssembler implements a collection of frequently used macros. 47 // MacroAssembler implements a collection of frequently used macros.
83 class MacroAssembler: public Assembler { 48 class MacroAssembler: public Assembler {
84 public: 49 public:
85 MacroAssembler(void* buffer, int size); 50 MacroAssembler(void* buffer, int size);
86 51
87 // --------------------------------------------------------------------------- 52 // ---------------------------------------------------------------------------
88 // Low-level helpers for compiler 53 // Low-level helpers for compiler
89 54
90 // Jump, Call, and Ret pseudo instructions implementing inter-working 55 // Jump, Call, and Ret pseudo instructions implementing inter-working
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 352 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
388 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 353 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
389 #else 354 #else
390 #define ACCESS_MASM(masm) masm-> 355 #define ACCESS_MASM(masm) masm->
391 #endif 356 #endif
392 357
393 358
394 } } // namespace v8::internal 359 } } // namespace v8::internal
395 360
396 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 361 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698