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

Side by Side Diff: src/cpu.h

Issue 6670119: VM initialization refactoring. (Closed)
Patch Set: Created 9 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // methods here to cope with differences between the supported architectures. 46 // methods here to cope with differences between the supported architectures.
47 // 47 //
48 // For each architecture the file cpu_<arch>.cc contains the implementation of 48 // For each architecture the file cpu_<arch>.cc contains the implementation of
49 // these functions. 49 // these functions.
50 50
51 class CPU : public AllStatic { 51 class CPU : public AllStatic {
52 public: 52 public:
53 // Initializes the cpu architecture support. Called once at VM startup. 53 // Initializes the cpu architecture support. Called once at VM startup.
54 static void Setup(); 54 static void Setup();
55 55
56 static bool SupportsCrankshaft();
57
56 // Flush instruction cache. 58 // Flush instruction cache.
57 static void FlushICache(void* start, size_t size); 59 static void FlushICache(void* start, size_t size);
58 60
59 // Try to activate a system level debugger. 61 // Try to activate a system level debugger.
60 static void DebugBreak(); 62 static void DebugBreak();
61 }; 63 };
62 64
63 } } // namespace v8::internal 65 } } // namespace v8::internal
64 66
65 #endif // V8_CPU_H_ 67 #endif // V8_CPU_H_
OLDNEW
« no previous file with comments | « src/arm/cpu-arm.cc ('k') | src/ia32/assembler-ia32.h » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698