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

Unified Diff: vm/bigint_store.h

Issue 9481019: Changes to get rid of dependency on openssl in the dart VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/bigint_operations_test.cc ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/bigint_store.h
===================================================================
--- vm/bigint_store.h (revision 4707)
+++ vm/bigint_store.h (working copy)
@@ -1,37 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#ifndef VM_BIGINT_STORE_H_
-#define VM_BIGINT_STORE_H_
-
-#include "vm/globals.h"
-#include "vm/isolate.h"
-
-namespace dart {
-
-// Use to store teporary BIGNUMs.
-class BigintStore {
- public:
- BigintStore() : bn_(NULL), bn_ctx_(NULL) {}
- ~BigintStore() {
- BN_free(bn_);
- BN_CTX_free(bn_ctx_);
- }
-
- static BigintStore* Get() {
- BigintStore* store = Isolate::Current()->bigint_store();
- if (store == NULL) {
- store = new BigintStore();
- Isolate::Current()->set_bigint_store(store);
- }
- return store;
- }
-
- BIGNUM* bn_;
- BN_CTX* bn_ctx_;
-};
-
-} // namespace dart
-
-#endif // VM_BIGINT_STORE_H_
« no previous file with comments | « vm/bigint_operations_test.cc ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698