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

Side by Side Diff: src/mips/simulator-mips.cc

Issue 180243010: Delete the simulator when we don't need it anymore (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 9 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 | « src/isolate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 registers_[ra] = bad_ra; 918 registers_[ra] = bad_ra;
919 InitializeCoverage(); 919 InitializeCoverage();
920 for (int i = 0; i < kNumExceptions; i++) { 920 for (int i = 0; i < kNumExceptions; i++) {
921 exceptions[i] = 0; 921 exceptions[i] = 0;
922 } 922 }
923 923
924 last_debugger_input_ = NULL; 924 last_debugger_input_ = NULL;
925 } 925 }
926 926
927 927
928 Simulator::~Simulator() {
929 }
930
931
928 // When the generated code calls an external reference we need to catch that in 932 // When the generated code calls an external reference we need to catch that in
929 // the simulator. The external reference will be a function compiled for the 933 // the simulator. The external reference will be a function compiled for the
930 // host architecture. We need to call that function instead of trying to 934 // host architecture. We need to call that function instead of trying to
931 // execute it with the simulator. We do that by redirecting the external 935 // execute it with the simulator. We do that by redirecting the external
932 // reference to a swi (software-interrupt) instruction that is handled by 936 // reference to a swi (software-interrupt) instruction that is handled by
933 // the simulator. We write the original destination of the jump just at a known 937 // the simulator. We write the original destination of the jump just at a known
934 // offset from the swi instruction so the simulator knows what to call. 938 // offset from the swi instruction so the simulator knows what to call.
935 class Redirection { 939 class Redirection {
936 public: 940 public:
937 Redirection(void* external_function, ExternalReference::Type type) 941 Redirection(void* external_function, ExternalReference::Type type)
(...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2938 } 2942 }
2939 2943
2940 2944
2941 #undef UNSUPPORTED 2945 #undef UNSUPPORTED
2942 2946
2943 } } // namespace v8::internal 2947 } } // namespace v8::internal
2944 2948
2945 #endif // USE_SIMULATOR 2949 #endif // USE_SIMULATOR
2946 2950
2947 #endif // V8_TARGET_ARCH_MIPS 2951 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698